@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --sidebar-w: 240px; --navy: #0d1b2a; --navy2: #162233; --navy3: #1e3048; --orange: #e85d04; --orange2: #f48c06; --white: #ffffff; --bg: #f0f2f5; --card: #ffffff; --text: #1a2332; --muted: #64748b; --border: #e2e8f0; --success: #16a34a; --danger: #dc2626; --warning: #d97706; --info: #0284c7; --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); --shadow-lg: 0 4px 16px rgba(0,0,0,.12); } html, body { height: 100%; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); } /* ─── Layout ────────────────────────────────────────────────────────────── */ #app { display: flex; height: 100vh; overflow: hidden; } /* ─── Sidebar ───────────────────────────────────────────────────────────── */ #sidebar { width: var(--sidebar-w); background: var(--navy); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; position: relative; transition: width .25s; } #sidebar::after { content: ''; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--orange), transparent); opacity: .3; } .sidebar-brand { padding: 24px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.06); } .sidebar-brand .logo-mark { display: flex; align-items: center; gap: 10px; } .sidebar-brand .logo-box { width: 34px; height: 34px; background: var(--orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-weight: 500; font-size: 13px; color: #fff; letter-spacing: .05em; } .sidebar-brand .logo-text { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: .02em; line-height: 1.2; } .sidebar-brand .logo-sub { font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; } .nav-section { padding: 14px 0 4px; } .nav-section-label { padding: 0 20px 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); font-weight: 500; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; color: rgba(255,255,255,.55); cursor: pointer; border-left: 2px solid transparent; transition: all .15s; font-size: 13.5px; user-select: none; } .nav-item:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.04); } .nav-item.active { color: #fff; background: rgba(232,93,4,.12); border-left-color: var(--orange); } .nav-item svg { flex-shrink: 0; opacity: .7; } .nav-item.active svg { opacity: 1; } .sidebar-user { margin-top: auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; } .sidebar-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0; } .sidebar-user .user-info { overflow: hidden; } .sidebar-user .user-name { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user .user-role { color: rgba(255,255,255,.35); font-size: 10px; font-family: 'DM Mono', monospace; letter-spacing: .05em; text-transform: uppercase; } .sidebar-user .logout-btn { margin-left: auto; cursor: pointer; color: rgba(255,255,255,.3); flex-shrink: 0; } .sidebar-user .logout-btn:hover { color: var(--orange); } /* ─── Main ──────────────────────────────────────────────────────────────── */ #main { flex: 1; display: flex; flex-direction: column; overflow: hidden; } #topbar { height: 56px; min-height: 56px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; } #topbar h1 { font-size: 16px; font-weight: 600; color: var(--text); } #topbar .topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; } #content { flex: 1; overflow-y: auto; padding: 24px; } /* ─── Cards ─────────────────────────────────────────────────────────────── */ .card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); } .card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; } .card-header h2 { font-size: 14px; font-weight: 600; flex: 1; } .card-body { padding: 20px; } /* ─── Stats grid ─────────────────────────────────────────────────────────── */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; } .stat-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: box-shadow .15s, transform .15s; } .stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); } .stat-card .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; } .stat-card .stat-value { font-size: 28px; font-weight: 300; color: var(--text); font-family: 'DM Mono', monospace; } .stat-card .stat-icon { font-size: 18px; color: var(--orange); margin-bottom: 4px; } /* ─── Table ─────────────────────────────────────────────────────────────── */ .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--border); white-space: nowrap; } td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; } tr:last-child td { border-bottom: 0; } tr:hover td { background: #fafafa; } .actions-td { white-space: nowrap; display: flex; gap: 6px; align-items: center; } .mono { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); } /* ─── Buttons ───────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 7px; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; transition: all .15s; white-space: nowrap; } .btn-primary { background: var(--orange); color: #fff; } .btn-primary:hover { background: #c94d00; } .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); } .btn-danger { background: #fee2e2; color: var(--danger); } .btn-danger:hover { background: #fecaca; } .btn-success { background: #dcfce7; color: var(--success); } .btn-success:hover { background: #bbf7d0; } .btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; } .btn-icon { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 6px; } /* ─── Badges ────────────────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; letter-spacing: .03em; font-family: 'DM Mono', monospace; text-transform: uppercase; } .badge-success { background: #dcfce7; color: #166534; } .badge-danger { background: #fee2e2; color: #991b1b; } .badge-warning { background: #fef9c3; color: #854d0e; } .badge-info { background: #dbeafe; color: #1e40af; } .badge-gray { background: #f1f5f9; color: #475569; } .badge-orange { background: #fff7ed; color: #c2410c; } /* ─── Forms ─────────────────────────────────────────────────────────────── */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .form-grid.cols-1 { grid-template-columns: 1fr; } .form-group { display: flex; flex-direction: column; gap: 5px; } .form-group.span-2 { grid-column: 1 / -1; } label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } input[type=text], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea { padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; color: var(--text); background: var(--white); transition: border-color .15s, box-shadow .15s; outline: none; width: 100%; } input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.12); } textarea { resize: vertical; min-height: 80px; } select { cursor: pointer; } .form-hint { font-size: 11px; color: var(--muted); margin-top: 2px; } .form-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); } /* ─── Search bar ─────────────────────────────────────────────────────────── */ .search-wrap { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; } .search-input-wrap { position: relative; flex: 1; max-width: 340px; } .search-input-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .search-input-wrap input { padding-left: 34px; } /* ─── Modal ─────────────────────────────────────────────────────────────── */ .modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; } .modal-bg.open { opacity: 1; pointer-events: all; } .modal { background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); width: 580px; max-width: 95vw; max-height: 88vh; display: flex; flex-direction: column; transform: translateY(16px); transition: transform .2s; } .modal-bg.open .modal { transform: translateY(0); } .modal.modal-lg { width: 860px; } .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .modal-header h3 { font-size: 15px; font-weight: 600; } .modal-close { cursor: pointer; color: var(--muted); border: none; background: none; font-size: 20px; line-height: 1; } .modal-body { padding: 22px; overflow-y: auto; flex: 1; } .modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; } /* ─── Toast ─────────────────────────────────────────────────────────────── */ #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 9px; font-size: 13px; min-width: 220px; max-width: 360px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; border-left: 3px solid var(--orange); } .toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--danger); } @keyframes toast-in { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } } /* ─── Accordion (for sections/questions) ────────────────────────────────── */ .accordion-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; } .accordion-header { padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; background: #fafafa; font-weight: 500; user-select: none; } .accordion-header:hover { background: #f1f5f9; } .accordion-arrow { margin-left: auto; transition: transform .2s; } .accordion-item.open .accordion-arrow { transform: rotate(180deg); } .accordion-body { padding: 12px 16px; display: none; border-top: 1px solid var(--border); background: var(--white); } .accordion-item.open .accordion-body { display: block; } /* ─── Question list ─────────────────────────────────────────────────────── */ .question-list { display: flex; flex-direction: column; gap: 6px; } .question-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); } .question-row .q-text { flex: 1; font-size: 13px; } .answer-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: #fafafa; border: 1px solid var(--border); } .answer-row.correct { background: #dcfce7; border-color: #86efac; } .answer-row .correct-badge { font-size: 10px; font-family: 'DM Mono', monospace; background: var(--success); color: #fff; padding: 1px 6px; border-radius: 4px; } /* ─── Empty state ───────────────────────────────────────────────────────── */ .empty-state { text-align: center; padding: 48px 24px; color: var(--muted); } .empty-state svg { margin-bottom: 12px; opacity: .35; } .empty-state p { font-size: 14px; } /* ─── Login page ────────────────────────────────────────────────────────── */ #login-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; } .login-card { width: 380px; background: var(--white); border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,.3); padding: 40px; } .login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; } .login-logo .box { width: 44px; height: 44px; background: var(--orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-weight: 500; font-size: 15px; color: #fff; } .login-logo .text h2 { font-size: 18px; font-weight: 700; } .login-logo .text p { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .login-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; } .login-card .subtitle { font-size: 13px; color: var(--muted); margin-bottom: 28px; } .login-form .form-group { margin-bottom: 16px; } .login-form label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; } .login-form input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border .15s, box-shadow .15s; } .login-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.15); } .login-btn { width: 100%; padding: 12px; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background .15s; } .login-btn:hover { background: #c94d00; } .login-error { background: #fee2e2; color: var(--danger); border-radius: 7px; padding: 10px 14px; font-size: 13px; margin-top: 12px; display: none; } /* ─── Responsive ────────────────────────────────────────────────────────── */ @media (max-width: 900px) { :root { --sidebar-w: 60px; } .sidebar-brand .logo-text, .sidebar-brand .logo-sub, .nav-section-label, .nav-item span, .sidebar-user .user-info { display: none; } .nav-item { justify-content: center; padding: 12px; } } @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid.cols-3 { grid-template-columns: 1fr; } #content { padding: 16px; } } /* ─── Misc ──────────────────────────────────────────────────────────────── */ .divider { height: 1px; background: var(--border); margin: 16px 0; } .text-muted { color: var(--muted); } .text-sm { font-size: 12px; } .fw-500 { font-weight: 500; } .d-flex { display: flex; } .gap-8 { gap: 8px; } .mb-16 { margin-bottom: 16px; } .loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--muted); gap: 10px; } .spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--orange); border-radius: 50%; animation: spin .6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }