1 | /* Active modal: Disable scrolling when the modal is open */
|
---|
2 | .activeModal {
|
---|
3 | overflow-y: hidden; /* Disable scrolling */
|
---|
4 | }
|
---|
5 |
|
---|
6 | /* Modal and overlay styles */
|
---|
7 | .modal,
|
---|
8 | .overlay {
|
---|
9 | position: fixed;
|
---|
10 | top: 0;
|
---|
11 | left: 0;
|
---|
12 | width: 100vw;
|
---|
13 | height: 100vh;
|
---|
14 | }
|
---|
15 |
|
---|
16 | /* Overlay: Dark background with optional blur */
|
---|
17 | .overlay {
|
---|
18 | background: rgba(0, 0, 0, 0.7); /* Darken the background */
|
---|
19 | backdrop-filter: blur(5px); /* Optional blur effect */
|
---|
20 | z-index: 999; /* Ensure the overlay appears below the modal */
|
---|
21 | }
|
---|
22 |
|
---|
23 | /* Modal content: Centered and styled */
|
---|
24 | .modalContent {
|
---|
25 | position: absolute;
|
---|
26 | top: 50%;
|
---|
27 | left: 50%;
|
---|
28 | transform: translate(-50%, -50%);
|
---|
29 | background-color: #2c2f33; /* Darker background for modal content */
|
---|
30 | color: #ffffff; /* White text for contrast */
|
---|
31 | padding: 20px;
|
---|
32 | border-radius: 8px;
|
---|
33 | max-width: 600px;
|
---|
34 | width: 100%;
|
---|
35 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
---|
36 | z-index: 1000; /* Ensure the modal appears above the overlay */
|
---|
37 | }
|
---|
38 |
|
---|
39 | /* Modal heading */
|
---|
40 | h2,
|
---|
41 | h3 {
|
---|
42 | margin-bottom: 15px;
|
---|
43 | color: #ffffff; /* White text for the headings */
|
---|
44 | }
|
---|
45 |
|
---|
46 | /* Button for opening the modal */
|
---|
47 | .btnModal {
|
---|
48 | padding: 10px 20px;
|
---|
49 | font-size: 18px;
|
---|
50 | background-color: #aa5c5c;
|
---|
51 | color: white;
|
---|
52 | border: none;
|
---|
53 | border-radius: 5px;
|
---|
54 | cursor: pointer;
|
---|
55 | margin: 10px 0;
|
---|
56 | display: block;
|
---|
57 | }
|
---|
58 |
|
---|
59 | .btnModal:hover {
|
---|
60 | background-color: #994f4f;
|
---|
61 | }
|
---|
62 |
|
---|
63 | /* Close button inside the modal */
|
---|
64 | .closeModal {
|
---|
65 | position: absolute;
|
---|
66 | top: 10px;
|
---|
67 | right: 10px;
|
---|
68 | padding: 5px 10px;
|
---|
69 | background-color: #dc3545;
|
---|
70 | color: white;
|
---|
71 | border: none;
|
---|
72 | border-radius: 5px;
|
---|
73 | cursor: pointer;
|
---|
74 | }
|
---|
75 |
|
---|
76 | .closeModal:hover {
|
---|
77 | background-color: #c82333;
|
---|
78 | }
|
---|
79 |
|
---|
80 | /* Form styles */
|
---|
81 | .form {
|
---|
82 | display: flex;
|
---|
83 | flex-direction: column;
|
---|
84 | }
|
---|
85 |
|
---|
86 | /* Form group: margin between form elements */
|
---|
87 | .formGroup {
|
---|
88 | margin-bottom: 15px;
|
---|
89 | }
|
---|
90 |
|
---|
91 | /* Form labels */
|
---|
92 | .formGroup label {
|
---|
93 | display: block;
|
---|
94 | margin-bottom: 5px;
|
---|
95 | color: #ffffff; /* White text for labels */
|
---|
96 | }
|
---|
97 |
|
---|
98 | /* Input, select, and textarea styles */
|
---|
99 | .formGroup input,
|
---|
100 | .formGroup select,
|
---|
101 | .formGroup textarea {
|
---|
102 | width: 100%;
|
---|
103 | padding: 8px;
|
---|
104 | border-radius: 4px;
|
---|
105 | border: 1px solid #ccc;
|
---|
106 | background-color: #23272a; /* Darker input background */
|
---|
107 | color: #ffffff; /* White text inside the input fields */
|
---|
108 | }
|
---|
109 |
|
---|
110 | .formGroup input::placeholder,
|
---|
111 | .formGroup textarea::placeholder {
|
---|
112 | color: #888888; /* Slightly lighter color for placeholder text */
|
---|
113 | }
|
---|
114 |
|
---|
115 | /* Checkbox style adjustment */
|
---|
116 | .formGroup input[type="checkbox"] {
|
---|
117 | width: auto;
|
---|
118 | margin-right: 10px;
|
---|
119 | }
|
---|
120 |
|
---|
121 | /* Add button for adding room types */
|
---|
122 | .addButton {
|
---|
123 | background-color: #28a745;
|
---|
124 | color: white;
|
---|
125 | padding: 8px 15px;
|
---|
126 | border: none;
|
---|
127 | border-radius: 5px;
|
---|
128 | cursor: pointer;
|
---|
129 | margin-top: 10px;
|
---|
130 | }
|
---|
131 |
|
---|
132 | .addButton:hover {
|
---|
133 | background-color: #218838;
|
---|
134 | }
|
---|
135 |
|
---|
136 | /* Dynamic room type list */
|
---|
137 | .roomTypeList {
|
---|
138 | list-style-type: none;
|
---|
139 | padding: 0;
|
---|
140 | margin-top: 15px;
|
---|
141 | }
|
---|
142 |
|
---|
143 | /* Individual room type item */
|
---|
144 | .roomTypeItem {
|
---|
145 | background-color: #444;
|
---|
146 | padding: 8px;
|
---|
147 | margin-bottom: 5px;
|
---|
148 | color: white;
|
---|
149 | border-radius: 5px;
|
---|
150 | display: flex;
|
---|
151 | justify-content: space-between;
|
---|
152 | align-items: center;
|
---|
153 | }
|
---|
154 |
|
---|
155 | /* Remove button */
|
---|
156 | .removeButton {
|
---|
157 | background-color: #dc3545;
|
---|
158 | color: white;
|
---|
159 | border: none;
|
---|
160 | padding: 5px 10px;
|
---|
161 | border-radius: 5px;
|
---|
162 | cursor: pointer;
|
---|
163 | }
|
---|
164 |
|
---|
165 | .removeButton:hover {
|
---|
166 | background-color: #c82333;
|
---|
167 | }
|
---|