Files
skywatch/client/src/SettingsWizard.css
T

274 lines
4.3 KiB
CSS

.settings-wizard {
max-width: 980px;
margin: 0 auto;
color: #e2e8f0;
}
.settings-wizard > h2 {
color: #f8fafc;
text-shadow: 0 1px 0 rgba(15, 23, 42, 0.3);
}
.settings-description {
color: #cbd5e1;
margin-bottom: 1.4rem;
}
.settings-section {
background: rgba(15, 23, 42, 0.85);
border-radius: 12px;
padding: 1.35rem;
margin-bottom: 1rem;
border: 1px solid #334155;
}
.settings-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 0.8rem;
border-bottom: 1px solid #334155;
}
.settings-header h3 {
margin: 0;
color: #f8fafc;
}
.settings-form {
margin-top: 1.5rem;
}
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
.form-group small {
display: block;
color: #cbd5e1;
font-size: 0.85rem;
margin-top: 0.25rem;
}
.settings-wizard .form-group label {
color: #e2e8f0;
}
.settings-wizard .form-group input,
.settings-wizard .form-group select,
.settings-wizard .form-group textarea {
background: #0b1325;
color: #f8fafc;
border: 1px solid #334155;
}
.settings-wizard .form-group input:focus,
.settings-wizard .form-group select:focus,
.settings-wizard .form-group textarea:focus {
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}
.info-box {
background: #0b1325;
border-left: 4px solid #60a5fa;
padding: 1rem;
margin: 1.5rem 0;
border-radius: 8px;
border: 1px solid #334155;
}
.info-box strong {
display: block;
margin-bottom: 0.5rem;
color: #f8fafc;
}
.info-box ol {
margin: 0.5rem 0 0 1.5rem;
padding: 0;
}
.info-box li {
margin: 0.25rem 0;
color: #e2e8f0;
}
.info-box a {
color: #bfdbfe;
text-decoration: none;
}
.info-box a:hover {
text-decoration: underline;
}
.info-box pre {
background: #111827;
color: #f8fafc;
padding: 1rem;
border-radius: 8px;
overflow-x: auto;
font-size: 0.85rem;
margin-top: 0.5rem;
border: 1px solid #334155;
}
.toggle-switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #334155;
transition: .4s;
border-radius: 34px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: #e2e8f0;
transition: .4s;
border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
background-color: #2563eb;
}
.toggle-switch input:focus + .toggle-slider {
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}
.toggle-switch input:checked + .toggle-slider:before {
transform: translateX(26px);
}
.btn-secondary {
background: #1e293b;
color: #f8fafc;
margin-top: 1rem;
border: 1px solid #334155;
}
.btn-secondary:hover:not(:disabled) {
background: #334155;
}
.btn-secondary:focus-visible {
outline: 2px solid #60a5fa;
outline-offset: 2px;
}
.btn-secondary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.test-result {
padding: 1rem;
border-radius: 8px;
margin: 1.5rem 0;
}
.test-result.success {
background: #052e16;
color: #86efac;
border: 1px solid #166534;
}
.test-result.error {
background: #3f1d1d;
color: #fda4af;
border: 1px solid #7f1d1d;
}
.test-result strong {
display: block;
margin-bottom: 0.5rem;
}
.test-result p {
margin: 0;
}
.settings-actions {
display: flex;
justify-content: center;
margin-top: 2rem;
}
.btn-large {
padding: 1rem 3rem;
font-size: 1.1rem;
}
.save-status {
position: fixed;
top: 20px;
right: 20px;
padding: 1rem 1.5rem;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
animation: slideIn 0.3s ease-out;
max-width: 300px;
}
.save-status.success {
background: #166534;
color: #dcfce7;
border-left: 4px solid #22c55e;
}
.save-status.error {
background: #7f1d1d;
color: #fee2e2;
border-left: 4px solid #ef4444;
}
.save-status strong {
display: block;
margin-bottom: 0.5rem;
font-size: 1rem;
}
.save-status p {
margin: 0;
font-size: 0.9rem;
}
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}