Spaces:
Paused
Paused
File size: 3,363 Bytes
5eb4857 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | .overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.3s ease;
}
.modal {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 16px;
width: 100%;
max-width: 480px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header {
padding: 20px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}
.header h3 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
color: var(--text1);
letter-spacing: -0.02em;
}
.closeBtn {
background: none;
border: none;
font-size: 1.5rem;
color: var(--text3);
cursor: pointer;
transition: color 0.2s;
}
.closeBtn:hover {
color: var(--text1);
}
.form {
padding: 24px;
}
.field {
margin-bottom: 20px;
}
.field label {
display: block;
font-size: 0.8rem;
color: var(--text2);
margin-bottom: 8px;
font-weight: 500;
}
.field input, .field select {
width: 100%;
background: var(--bg1);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
color: var(--text1);
font-size: 0.95rem;
transition: all 0.2s;
}
.field input:focus, .field select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.toggleField {
display: flex;
align-items: center;
gap: 12px;
margin: 24px 0;
padding: 16px;
background: var(--bg1);
border-radius: 12px;
border: 1px solid var(--border);
}
.toggleField span {
font-size: 0.9rem;
color: var(--text1);
font-weight: 500;
}
.switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--bg3);
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--green);
}
input:checked + .slider:before {
transform: translateX(20px);
}
.footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 32px;
}
.cancelBtn {
padding: 10px 18px;
background: none;
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text2);
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.cancelBtn:hover {
background: var(--bg3);
color: var(--text1);
}
.saveBtn {
padding: 10px 24px;
background: var(--accent);
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
}
.saveBtn:hover:not(:disabled) {
filter: brightness(1.2);
transform: translateY(-1px);
}
.saveBtn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
|