Spaces:
Sleeping
Sleeping
File size: 3,592 Bytes
fd52f31 |
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 |
.response-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
backdrop-filter: blur(3px);
animation: fadeIn 0.2s ease-out;
}
.response-modal-content {
background-color: #1a1a2e;
padding: 1.5rem;
border-radius: 12px;
width: 90%;
max-width: 700px;
max-height: 90vh;
display: flex;
flex-direction: column;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
border: 1px solid #2a2a42;
animation: slideUp 0.3s ease-out;
}
.response-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #2a2a42;
}
.response-modal-header h3 {
margin: 0;
font-size: 1.3rem;
background: linear-gradient(45deg, #8b5cf6, #3b82f6);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
flex-grow: 1;
}
.response-modal-turn {
margin-right: 1rem;
color: #9ca3af;
font-size: 0.9rem;
}
.close-btn {
background: none;
border: none;
color: #9ca3af;
font-size: 1.5rem;
cursor: pointer;
padding: 0;
transition: color 0.2s;
}
.close-btn:hover {
color: #f43f5e;
}
.response-editor {
width: 100%;
min-height: 200px;
padding: 0.8rem;
margin-bottom: 1rem;
background-color: #1e1e30;
border: 1px solid #3a3a5a;
border-radius: 8px;
color: #e5e7eb;
font-family: inherit;
font-size: 1rem;
line-height: 1.6;
resize: vertical;
transition: border 0.2s ease;
}
.response-editor:focus {
outline: none;
border-color: #8b5cf6;
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}
.response-modal-footer {
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 1rem;
}
.cancel-btn,
.save-btn {
padding: 0.6rem 1.2rem;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
border: none;
}
.cancel-btn {
background-color: transparent;
color: #9ca3af;
border: 1px solid #3a3a5a;
}
.cancel-btn:hover {
background-color: #2a2a42;
color: #e5e7eb;
}
.save-btn {
background-color: #8b5cf6;
color: white;
}
.save-btn:hover {
background-color: #7c3aed;
box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Light theme adjustments */
:root[data-theme="light"] .response-modal-overlay {
background-color: rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] .response-modal-content {
background-color: #ffffff;
border: 1px solid #e5e7eb;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
:root[data-theme="light"] .response-modal-header {
border-bottom: 1px solid #e5e7eb;
}
:root[data-theme="light"] .response-editor {
background-color: #f9fafb;
border: 1px solid #d1d5db;
color: #1f2937;
}
:root[data-theme="light"] .response-editor:focus {
border-color: #8b5cf6;
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}
:root[data-theme="light"] .cancel-btn {
color: #4b5563;
border: 1px solid #d1d5db;
}
:root[data-theme="light"] .cancel-btn:hover {
background-color: #f3f4f6;
color: #1f2937;
} |