/* ============================================================ SURVAM — Admin Panel Styles ============================================================ */ .admin-body { background: #f0f2f7; } /* ── Layout ─────────────────────────────────────────────── */ .admin-layout { display: flex; min-height: 100vh; } /* ── Sidebar ────────────────────────────────────────────── */ .admin-sidebar { width: 240px; flex-shrink: 0; background: var(--brand-primary); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 200; transition: var(--transition-slow); } .sidebar-brand { padding: 1.5rem 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.6rem; } .sidebar-brand a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; } .sidebar-brand .brand-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: white; } .admin-badge { background: var(--brand-accent); color: white; font-size: 0.62rem; font-weight: 800; padding: 1px 6px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto; } .sidebar-nav { padding: 1rem 0; flex: 1; } .nav-section { padding: 0 0 0.5rem; } .nav-section-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); padding: 0.6rem 1rem 0.3rem; display: block; } .sidebar-nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem; color: rgba(255,255,255,0.65); font-size: 0.87rem; font-weight: 500; text-decoration: none; border-radius: 0; transition: var(--transition); border-left: 3px solid transparent; } .sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.7; } .sidebar-nav a:hover { background: var(--bg-sidebar-hover); color: white; opacity: 1; } .sidebar-nav a.active { background: rgba(233,69,96,0.15); color: var(--brand-accent); border-left-color: var(--brand-accent); } .sidebar-nav a.active svg { opacity: 1; color: var(--brand-accent); } .sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 0.75rem; } .back-to-portal { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; color: rgba(255,255,255,0.5); font-size: 0.82rem; text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); } .back-to-portal svg { width: 15px; height: 15px; } .back-to-portal:hover { background: rgba(255,255,255,0.08); color: white; opacity: 1; } /* ── Content ────────────────────────────────────────────── */ .admin-content-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; } .admin-topbar { background: white; height: 60px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-xs); } .topbar-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); flex: 1; } .topbar-right { display: flex; align-items: center; gap: 1rem; } .admin-role-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: var(--bg-page); color: var(--text-muted); padding: 0.25rem 0.65rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); } .topbar-logout { font-size: 0.83rem; font-weight: 600; color: var(--brand-accent); } .sidebar-toggle { background: none; border: none; padding: 0.3rem; color: var(--text-muted); display: none; } .sidebar-toggle svg { width: 20px; height: 20px; } .admin-main { padding: 1.75rem; flex: 1; } /* ── Admin Cards ────────────────────────────────────────── */ .admin-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); margin-bottom: 1.5rem; } .admin-card-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; } .admin-card-header h3 { font-size: 0.95rem; font-weight: 700; } .admin-card-body { padding: 1.4rem; } /* ── Admin Stats ────────────────────────────────────────── */ .admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; } .admin-stat { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-xs); } .admin-stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; } .admin-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; } .admin-stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; } /* ── Table actions column ───────────────────────────────── */ .action-cell { display: flex; gap: 0.4rem; } /* ── User status indicator ──────────────────────────────── */ .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 0.4rem; } .status-dot.active { background: #22c55e; } .status-dot.inactive { background: #ef4444; } /* ── Settings form ──────────────────────────────────────── */ .settings-form-section { margin-bottom: 2rem; } .settings-form-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } /* ── Responsive ─────────────────────────────────────────── */ @media (max-width: 900px) { .admin-sidebar { position: fixed; left: -240px; top: 0; height: 100%; transition: left 0.3s ease; z-index: 900; } .admin-sidebar.open { left: 0; } .sidebar-toggle { display: flex; } .admin-main { padding: 1.25rem 1rem; } .admin-stats-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 500px) { .admin-stats-grid { grid-template-columns: 1fr; } }