:root { --sidebar-width: 248px; --sidebar-collapsed-width: 78px; --bg: #eef0f7; --page-bg: #eef0f7; --sidebar-bg: #ffffff; --sidebar-text: #3f4254; --sidebar-muted: #8a8d9b; --sidebar-hover: #f2f3f9; --sidebar-accent: #5b5bd6; --sidebar-active: #5b5bd6; --card-bg: #fff; --surface-hover: #f2f3f9; --th-bg: #f4f5fb; --input-bg: #fff; --border: #e6e7f0; --accent: #5b5bd6; --accent-dark: #4a4ac0; --accent-soft: rgba(91,91,214,.12); --danger: #d13438; --success: #107c10; --warn: #797673; --text: #323130; --text-muted: #605e5c; --surface-2: #2d2d4e; --font: 'Segoe UI', system-ui, sans-serif; /* shape + depth — match sidebar */ --radius-lg: 20px; --radius-md: 12px; --radius-sm: 10px; --shadow-card: 0 10px 34px rgba(30,30,70,.10); --shadow-soft: 0 6px 16px rgba(91,91,214,.22); } *, *::before, *::after { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--text); } /* ── Layout ── */ .app-layout { display: flex; height: 100vh; overflow: hidden; background: var(--page-bg); } .sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; margin: 14px 0 14px 14px; border-radius: 20px; box-shadow: 0 10px 34px rgba(30,30,70,.10); transition: width 0.2s, min-width 0.2s; overflow: hidden; } .sidebar.collapsed { width: var(--sidebar-collapsed-width); min-width: var(--sidebar-collapsed-width); } .sidebar.collapsed .nav-label, .sidebar.collapsed .profile-name, .sidebar.collapsed .logo-text, .sidebar.collapsed .logo, .sidebar.collapsed .switch, .sidebar.collapsed .nav-divider { display: none; } .sidebar.collapsed .sidebar-header { justify-content: center; } .sidebar.collapsed .nav-item, .sidebar.collapsed .nav-search { justify-content: center; gap: 0; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px; flex-shrink: 0; } .logo { display: flex; align-items: center; gap: 11px; overflow: hidden; } .logo-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: linear-gradient(135deg, #6d6df0, #5b5bd6); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; } .logo-text { font-weight: 700; font-size: 16px; color: var(--sidebar-text); white-space: nowrap; } .toggle-btn { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--sidebar-accent); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .2s; } .toggle-btn.collapsed { transform: rotate(180deg); } .profile-badge { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 8px 11px; border-radius: 11px; background: var(--sidebar-hover); font-size: 12px; } .profile-icon { font-size: 16px; } .profile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .identity-badge { display: flex; flex-direction: column; margin: 0 12px 10px; padding: 11px 12px; background: var(--sidebar-hover); border-radius: 13px; overflow: hidden; } .identity-name { font-size: 12.5px; font-weight: 600; color: var(--sidebar-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .identity-email { font-size: 11px; color: var(--sidebar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar.collapsed .identity-badge { display: none; } .nav-search { display: flex; align-items: center; gap: 10px; margin: 2px 12px 8px; padding: 9px 12px; border-radius: 12px; background: var(--sidebar-hover); color: var(--sidebar-muted); font-size: 13.5px; white-space: nowrap; } .nav-search-input { flex: 1; min-width: 0; border: none; background: none; outline: none; color: var(--sidebar-text); font-family: inherit; font-size: 13.5px; } .nav-search-input::placeholder { color: var(--sidebar-muted); } .nav-search-clear { border: none; background: none; cursor: pointer; padding: 0 2px; color: var(--sidebar-muted); font-size: 12px; line-height: 1; } .nav-search-clear:hover { color: var(--sidebar-text); } .sidebar.collapsed .nav-search-input, .sidebar.collapsed .nav-search-clear { display: none; } .nav-empty { padding: 12px; font-size: 12px; color: var(--sidebar-muted); text-align: center; } .nav-menu { flex: 1; overflow-y: auto; padding: 2px 12px 8px; } .nav-divider { padding: 14px 8px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--sidebar-muted); } .nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 2px 0; border-radius: 12px; color: var(--sidebar-text); text-decoration: none; font-size: 13.5px; white-space: nowrap; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; transition: background 0.15s, color 0.15s, box-shadow 0.15s; } .nav-item:hover { background: var(--sidebar-hover); } .nav-item.active { background: var(--sidebar-accent); color: #fff; box-shadow: 0 6px 16px rgba(91,91,214,.35); } .nav-icon { font-size: 16px; min-width: 22px; text-align: center; } .nav-label { overflow: hidden; text-overflow: ellipsis; } .sidebar-footer { flex-shrink: 0; padding: 8px 12px 14px; margin-top: 4px; border-top: 1px solid var(--sidebar-hover); } .theme-toggle { color: var(--sidebar-text); } .switch { margin-left: auto; width: 38px; height: 20px; border-radius: 20px; background: #cfd2e0; position: relative; flex-shrink: 0; transition: background .15s; } .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; } .switch.on { background: var(--sidebar-accent); } .switch.on::after { left: 20px; } .content { flex: 1; overflow-y: auto; padding: 24px 28px; } /* ── Sidebar dark variant ── */ [data-theme="dark"] { --page-bg: #15161c; --bg: #15161c; --sidebar-bg: #1f2128; --sidebar-text: #e7e8ee; --sidebar-muted: #9a9db0; --sidebar-hover: #2a2c36; /* content surfaces */ --card-bg: #1f2128; --surface-hover: #2a2c36; --th-bg: #262834; --input-bg: #262834; --border: #313442; --text: #e7e8ee; --text-muted: #9a9db0; --shadow-card: 0 10px 34px rgba(0,0,0,.35); } [data-theme="dark"] .nav-search:hover { background: #32343f; } [data-theme="dark"] .switch { background: #3a3d4a; } /* ── Cards ── */ .card { background: var(--card-bg); border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-card); padding: 22px 24px; margin-bottom: 16px; } .card-title { font-size: 16px; font-weight: 700; margin: 0 0 12px 0; color: var(--text); } /* ── Forms ── */ .form-group { margin-bottom: 14px; } .form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; } .form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; font-family: var(--font); background: var(--input-bg); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; } .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .form-textarea { min-height: 80px; resize: vertical; } .form-row { display: flex; gap: 12px; flex-wrap: wrap; } .form-row .form-group { flex: 1; min-width: 180px; } /* ── Buttons ── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-md); cursor: pointer; font-size: 14px; font-family: var(--font); font-weight: 600; border: 1px solid transparent; transition: background 0.15s, box-shadow 0.15s, opacity 0.15s; white-space: nowrap; } .btn:disabled { opacity: .5; cursor: not-allowed; } .btn-primary { background: var(--accent); color: #fff; border-color: transparent; } .btn-primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: var(--shadow-soft); } .btn-secondary { background: var(--card-bg); color: var(--text); border-color: var(--border); } .btn-secondary:hover:not(:disabled) { background: var(--surface-hover); } .btn-danger { background: var(--danger); color: #fff; border-color: transparent; } .btn-danger:hover:not(:disabled) { background: #a4262c; box-shadow: 0 6px 16px rgba(209,52,56,.28); } .btn-sm { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-sm); } .btn-link { background: none; border-color: transparent; color: var(--accent); padding: 5px 8px; } .btn-link:hover:not(:disabled) { text-decoration: underline; } /* ── User multi-select list ── */ .user-select-list { margin-top: 8px; max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); } .user-select-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-weight: normal; } .user-select-row:last-child { border-bottom: none; } .user-select-row:hover { background: var(--surface-hover); } .user-select-name { font-weight: 500; } /* ── Progress ── */ .progress-bar { height: 6px; background: var(--surface-hover); border-radius: 3px; overflow: hidden; margin: 8px 0; } .progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; } .progress-msg { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; } /* ── Tables ── */ .data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); } .data-table { width: 100%; border-collapse: collapse; font-size: 13px; } .data-table th { background: var(--th-bg); padding: 10px 12px; text-align: left; font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text-muted); } .data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); word-break: break-word; } .data-table tr:last-child td { border-bottom: none; } .data-table tr:hover td { background: var(--surface-hover); } .data-table .num { text-align: right; font-variant-numeric: tabular-nums; } /* ── Alerts ── */ .alert { padding: 11px 15px; border-radius: var(--radius-md); margin: 8px 0; font-size: 13px; } .alert-error { background: #fde7e9; border: 1px solid #f4abab; color: #831111; } .alert-success { background: #dff6dd; border: 1px solid #92c47a; color: #215732; } .alert-info { background: #e8f4fd; border: 1px solid #84bae3; color: #1b4b72; } .alert-warn { background: #fff4ce; border: 1px solid #ffd966; color: #523a00; } /* ── Tags / Chips ── */ .chip { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; } .chip-blue { background: #dbeafe; color: #1e40af; } .chip-green { background: #d1fae5; color: #065f46; } .chip-red { background: #fee2e2; color: #991b1b; } .chip-yellow { background: #fef3c7; color: #92400e; } .chip-gray { background: #f3f4f6; color: #374151; } /* ── Misc ── */ .page-title { font-size: 20px; font-weight: 700; margin: 0 0 20px 0; color: var(--text); } .page-subtitle { font-size: 13px; color: var(--text-muted); margin: -14px 0 20px 0; } .flex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .spacer { flex: 1; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .text-muted { color: var(--text-muted); font-size: 12px; } .count-badge { background: var(--accent); color: #fff; border-radius: 12px; padding: 1px 8px; font-size: 11px; font-weight: 700; } /* ── Site picker ── */ .site-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); } .site-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; } .site-item:last-child { border-bottom: none; } .site-item:hover { background: var(--surface-hover); } .site-item.selected { background: var(--accent-soft); } /* ── CSV validation table ── */ .val-valid td { background: #f0fff4; } .val-error td { background: #fff0f0; } .val-error-msg { color: var(--danger); font-size: 11px; } /* ── No-profile state ── */ .no-profile { text-align: center; padding: 60px 20px; color: var(--text-muted); } .no-profile h2 { color: var(--text); } /* ── Modal ── */ .modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); padding: 20px; animation: modal-fade .15s ease-out; } .modal-dialog { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(30, 30, 70, .28); width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 24px; animation: modal-rise .15s ease-out; } .modal-header { margin-bottom: 16px; } .modal-header h3 { margin: 0 0 6px 0; font-size: 18px; font-weight: 600; color: var(--text); } .modal-header .text-muted { margin: 0; line-height: 1.4; } .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } @keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes modal-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } /* ── Progress panel ── */ .progress-panel { margin: 8px 0; } .progress-fill.indeterminate { width: 40%; background: var(--accent); animation: indeterminate 1.1s ease-in-out infinite; } @keyframes indeterminate { 0% { margin-left: -40%; } 100% { margin-left: 100%; } } /* ── Feature cards (Home) ── */ .feature-card { cursor: pointer; transition: box-shadow .15s, transform .15s; } .feature-card:hover { box-shadow: 0 14px 36px rgba(91, 91, 214, .22); transform: translateY(-2px); } /* ── Theme (light-only palette; System resolves via JS) ── */ [data-theme="light"] { color-scheme: light; }