@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg: #0f1117; --surface: #1a1d27; --card: #1e2235; --border: #2a2d3e; --accent: #5865f2; --accent-hover: #4752c4; --success: #57f287; --warning: #fee75c; --danger: #ed4245; --text: #e0e0e0; --text-muted: #888; --sidebar-width: 260px; } body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); display: flex; min-height: 100vh; } /* Top bar */ .topbar { position: fixed; top: 0; left: var(--sidebar-width); right: 0; height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 100; } .topbar h1 { font-size: 16px; font-weight: 600; } .topbar .status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); } .topbar .status .dot { width: 8px; height: 8px; border-radius: 50%; } .topbar .status .dot.online { background: var(--success); } .topbar .status .dot.offline { background: var(--danger); } .topbar .actions { display: flex; gap: 12px; align-items: center; } .topbar .actions button { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 200ms; } .topbar .actions button:hover { border-color: var(--accent); color: var(--text); } /* Sidebar */ .sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--surface); border-right: 1px solid var(--border); padding: 16px 0; overflow-y: auto; z-index: 101; } .sidebar .logo { padding: 12px 20px 24px; font-size: 18px; font-weight: 700; } .sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 500; border-left: 3px solid transparent; transition: all 200ms; } .sidebar a:hover { color: var(--text); background: rgba(88,101,242,0.08); } .sidebar a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(88,101,242,0.1); } /* Main */ .main { margin-left: var(--sidebar-width); margin-top: 56px; padding: 24px; flex: 1; padding-bottom: 100px; } /* Section cards */ .section { margin-bottom: 24px; } .section-header { background: var(--card); border: 1px solid var(--border); border-radius: 12px 12px 0 0; padding: 20px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: background 200ms; } .section-header:hover { background: #232740; } .section-header h2 { font-size: 15px; font-weight: 600; flex: 1; } .section-header p { font-size: 12px; color: var(--text-muted); } .section-header .chevron { transition: transform 200ms; font-size: 18px; color: var(--text-muted); } .section.collapsed .section-header { border-radius: 12px; } .section.collapsed .section-body { display: none; } .section.collapsed .chevron { transform: rotate(-90deg); } .section-body { background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 24px; } /* Field grid */ .field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; } .field { display: flex; flex-direction: column; gap: 6px; } .field.full-width { grid-column: 1 / -1; } .field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border-color 200ms; } .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(88,101,242,0.2); } .field textarea { min-height: 80px; resize: vertical; } .field input.changed, .field select.changed, .field textarea.changed { border-color: var(--warning); } .field .hint { font-size: 11px; color: var(--text-muted); } /* Toggle switch */ .toggle-wrap { display: flex; align-items: center; gap: 12px; } .toggle { position: relative; width: 44px; height: 24px; } .toggle input { opacity: 0; width: 0; height: 0; } .toggle .slider { position: absolute; inset: 0; background: var(--border); border-radius: 12px; cursor: pointer; transition: background 200ms; } .toggle .slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 200ms; } .toggle input:checked + .slider { background: var(--accent); } .toggle input:checked + .slider::before { transform: translateX(20px); } /* Color picker */ .color-field { display: flex; align-items: center; gap: 10px; } .color-field input[type="color"] { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: none; padding: 2px; } /* Smart select */ .smart-select { position: relative; } .smart-select-display { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 42px; transition: border-color 200ms; } .smart-select-display:hover { border-color: var(--accent); } .smart-select-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-top: 4px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.5); max-height: 300px; overflow: hidden; display: flex; flex-direction: column; } .smart-select-dropdown.hidden { display: none; } .ss-search { background: var(--bg); border: none; border-bottom: 1px solid var(--border); padding: 10px 14px; color: var(--text); font-size: 13px; outline: none; } .ss-list { overflow-y: auto; max-height: 250px; padding: 4px; } .ss-option { padding: 8px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: background 200ms; } .ss-option:hover { background: rgba(88,101,242,0.15); } .ss-option.selected { background: rgba(88,101,242,0.2); } .ss-option.ss-clear { color: var(--text-muted); font-style: italic; } .ss-label { flex: 1; } .ss-sub { font-size: 11px; color: var(--text-muted); } .ss-id { font-size: 11px; color: var(--text-muted); font-family: monospace; } .ss-placeholder { color: var(--text-muted); } .ss-avatar { width: 20px; height: 20px; border-radius: 50%; } .ss-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; } /* Save bar */ .save-bar { position: fixed; bottom: 0; left: var(--sidebar-width); right: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; transform: translateY(100%); transition: transform 300ms ease; z-index: 100; } .save-bar.visible { transform: translateY(0); } .save-bar span { font-size: 13px; color: var(--warning); font-weight: 500; } .save-actions { display: flex; gap: 8px; } .save-actions button { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 200ms; } .save-actions button:first-child { background: var(--accent); color: #fff; } .save-actions button:first-child:hover { background: var(--accent-hover); } .save-actions button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); } .save-actions button.secondary:hover { border-color: var(--accent); } .save-actions button.danger { background: var(--danger); color: #fff; } .save-actions button.danger:hover { background: #c9363a; } /* Toast */ #toast-container { position: fixed; top: 72px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; } .toast { padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; animation: toast-in 300ms ease; } .toast-success { background: rgba(87,242,135,0.15); color: var(--success); border: 1px solid rgba(87,242,135,0.3); } .toast-warning { background: rgba(254,231,92,0.15); color: var(--warning); border: 1px solid rgba(254,231,92,0.3); } .toast-error { background: rgba(237,66,69,0.15); color: var(--danger); border: 1px solid rgba(237,66,69,0.3); } @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } /* Modal */ .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 400; } .modal.hidden { display: none; } .modal-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; min-width: 340px; } .modal-card h3 { margin-bottom: 16px; font-size: 16px; } .modal-card input { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; margin-bottom: 16px; } .modal-actions { display: flex; gap: 8px; justify-content: flex-end; } .modal-actions button { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; } .modal-actions button:first-child { background: var(--accent); color: #fff; } .modal-actions button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); } /* Loading */ .loading { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 500; } .loading.hidden { display: none; } .spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Notifications section */ #s-notifications .notif-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } #s-notifications .notif-tab-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; } #s-notifications .notif-tab-btn.active { border-color: var(--accent); color: var(--accent); } #s-notifications .notif-panel.hidden { display: none; } #s-notifications .notif-editor { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: var(--surface); } #s-notifications .notif-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; min-height: 28px; } #s-notifications .notif-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12px; } #s-notifications .notif-chip button { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0; line-height: 1; font-size: 14px; } #s-notifications .notif-input-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } #s-notifications .notif-input-row input { width: 220px; } #s-notifications .notif-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } #s-notifications .notif-presets button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; } #s-notifications .notif-trigger { margin-top: 10px; } #s-notifications .notif-trigger summary { cursor: pointer; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; } /* Logging section cross-link hint */ .logging-hint { color: var(--text-muted); font-size: 13px; } .logging-hint a { color: var(--accent); } /* Logout form inline layout */ .logout-form { display: inline; }