/* Drug Free Community - Professional Business Theme */
:root {
    --primary: #0d4f4f;
    --primary-dark: #083838;
    --primary-light: #1a7a7a;
    --accent: #2ecc71;
    --accent-hover: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --dark: #1a2332;
    --gray-900: #2c3e50;
    --gray-700: #5d6d7e;
    --gray-500: #95a5a6;
    --gray-300: #d5dbdb;
    --gray-100: #f4f6f7;
    --white: #ffffff;
    --sidebar-width: 260px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 10px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-900);
    background: var(--gray-100);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Landing Page ─── */
.landing-page { background: var(--white); }

.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0 2rem;
}

.landing-nav .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.landing-nav .logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.35rem; font-weight: 700; color: var(--primary);
}

.landing-nav .logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

.landing-nav .nav-links { display: flex; align-items: center; gap: 2rem; }
.landing-nav .nav-links a { color: var(--gray-700); font-weight: 500; transition: var(--transition); }
.landing-nav .nav-links a:hover { color: var(--primary); }

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex; align-items: center;
    padding: 100px 2rem 60px;
    position: relative; overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem; font-weight: 800; color: white;
    line-height: 1.2; margin-bottom: 1.5rem;
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
    font-size: 1.15rem; color: rgba(255,255,255,0.85);
    margin-bottom: 2rem; max-width: 520px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.18); }
.stat-card .number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-card .label { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 0.25rem; }

.section { padding: 80px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; color: var(--dark); margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-700); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}

.feature-card {
    background: white; border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
    transition: var(--transition); border-top: 4px solid var(--primary);
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; margin-bottom: 1.25rem;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--dark); }
.feature-card p { color: var(--gray-700); font-size: 0.95rem; }

.roles-section { background: var(--gray-100); }

.roles-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}

.role-card {
    background: white; border-radius: var(--radius); padding: 2rem;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition);
}

.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-card .role-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.role-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.role-card p { color: var(--gray-700); font-size: 0.9rem; margin-bottom: 1rem; }

.campaigns-preview { background: white; }
.campaign-list { display: grid; gap: 1rem; }
.campaign-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; background: var(--gray-100);
    border-radius: var(--radius); border-left: 4px solid var(--accent);
}

.hotspot-table-wrap { overflow-x: auto; }
.hotspot-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}

.landing-footer {
    background: var(--dark); color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 1.5rem;
}

.landing-footer .footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem;
}

.landing-footer h4 { color: white; margin-bottom: 1rem; }
.landing-footer .footer-bottom {
    max-width: 1200px; margin: 2rem auto 0;
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.9rem;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.65rem 1.5rem; border-radius: 8px; font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer;
    transition: var(--transition); text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); color: white; }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-outline-dark { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; color: white; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ─── Auth Pages ─── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white; border-radius: 16px;
    box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
    padding: 2.5rem;
}

.auth-card h2 { text-align: center; color: var(--dark); margin-bottom: 0.5rem; }
.auth-card .subtitle { text-align: center; color: var(--gray-700); margin-bottom: 2rem; }
.auth-links { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-700); }
.auth-links a { color: var(--primary); font-weight: 600; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--gray-900); font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 0.7rem 1rem;
    border: 2px solid var(--gray-300); border-radius: 8px;
    font-size: 0.95rem; transition: var(--transition);
    font-family: inherit;
}

.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,79,79,0.15); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 18px; height: 18px; }

select.form-control { appearance: auto; }

/* ─── Admin Layout ─── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: var(--sidebar-width); background: var(--dark);
    color: rgba(255,255,255,0.85); position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 100;
    overflow-y: auto; transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem; font-weight: 700; color: white;
}

.sidebar-header .brand-icon {
    width: 36px; height: 36px;
    background: var(--accent); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.sidebar-nav { padding: 1rem 0; }
.sidebar-nav .nav-section { padding: 0.5rem 1.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }

.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 0.75rem 1.5rem; color: rgba(255,255,255,0.75);
    transition: var(--transition); font-size: 0.92rem;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.08); color: white;
    border-left-color: var(--accent);
}

.sidebar-nav a .nav-icon { width: 20px; text-align: center; }

.admin-main { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }

.admin-topbar {
    background: white; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 3px solid var(--primary);
}

.admin-command-sidebar .brand-icon {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
}

.admin-command-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.admin-command-sidebar .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
.admin-command-sidebar .sidebar-nav a:hover,
.admin-command-sidebar .sidebar-nav a.active {
    background: rgba(13, 148, 136, 0.25); border-left: 3px solid var(--accent);
}

.admin-topbar.admin-command-topbar { border-bottom-color: var(--accent); }


.admin-profile-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}

.admin-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.detail-card.admin-detail { border-left-color: var(--primary); }

.pending-alert {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d; border-radius: var(--radius);
    padding: 1rem 1.5rem; margin-bottom: 1.5rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}

.status-pills.admin-pills a.active,
.status-pills.admin-pills a:hover {
    background: var(--primary); border-color: var(--primary);
}

.admin-metric-highlight {
    font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem;
}


.admin-topbar h1 { font-size: 1.4rem; color: var(--dark); font-weight: 700; }
.admin-topbar .user-info { display: flex; align-items: center; gap: 1rem; color: var(--gray-700); font-size: 0.9rem; }

.admin-content { padding: 2rem; }

/* ─── Dashboard Cards ─── */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
    transition: var(--transition);
}

.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-box .stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.stat-box .stat-icon.blue { background: rgba(52,152,219,0.15); color: var(--info); }
.stat-box .stat-icon.green { background: rgba(46,204,113,0.15); color: var(--accent); }
.stat-box .stat-icon.orange { background: rgba(243,156,18,0.15); color: var(--warning); }
.stat-box .stat-icon.red { background: rgba(231,76,60,0.15); color: var(--danger); }
.stat-box .stat-icon.teal { background: rgba(13,79,79,0.15); color: var(--primary); }

.stat-box .stat-info h3 { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.stat-box .stat-info p { color: var(--gray-700); font-size: 0.85rem; }

/* ─── Cards & Tables ─── */
.card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-300);
    display: flex; justify-content: space-between; align-items: center;
}

.card-header h3 { font-size: 1.1rem; color: var(--dark); }
.card-body { padding: 1.5rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-300); }
.data-table th { background: var(--gray-100); font-weight: 600; color: var(--gray-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr:hover { background: rgba(13,79,79,0.03); }
.data-table td { font-size: 0.92rem; }

/* ─── Badges ─── */
.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}

.badge-pending { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-verified, .badge-active, .badge-upcoming { background: rgba(46,204,113,0.15); color: var(--accent-hover); }
.badge-rejected, .badge-cancelled { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-forwarded, .badge-ongoing { background: rgba(52,152,219,0.15); color: var(--info); }
.badge-completed, .badge-closed { background: rgba(149,165,166,0.2); color: var(--gray-700); }
.badge-high, .badge-critical { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-medium { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-low { background: rgba(46,204,113,0.15); color: var(--accent-hover); }

/* ─── User Dashboard Layout ─── */
.user-layout { min-height: 100vh; }
.user-navbar {
    background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 0 2rem; position: sticky; top: 0; z-index: 100;
}

.user-navbar .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}

.user-navbar .logo { font-weight: 700; color: var(--primary); font-size: 1.15rem; }
.user-nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.user-nav-links a {
    padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem;
    color: var(--gray-700); font-weight: 500; transition: var(--transition);
}

.user-nav-links a:hover, .user-nav-links a.active {
    background: rgba(13,79,79,0.08); color: var(--primary);
}

.user-content { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; color: var(--dark); margin-bottom: 0.25rem; }
.page-header p { color: var(--gray-700); }

.quick-actions {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.action-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--dark); }
.action-card p { font-size: 0.85rem; color: var(--gray-700); margin-bottom: 1rem; }

.content-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}

.content-item {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow);
}

.content-item h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.05rem; }
.content-item .category { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.content-item p { color: var(--gray-700); font-size: 0.92rem; }

.quiz-option { display: block; padding: 0.75rem 1rem; margin-bottom: 0.5rem; border: 2px solid var(--gray-300); border-radius: 8px; cursor: pointer; transition: var(--transition); }
.quiz-option:hover { border-color: var(--primary); background: rgba(13,79,79,0.04); }
.quiz-option input { margin-right: 0.75rem; }

/* ─── Alerts ─── */
.alert {
    padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem;
    font-size: 0.92rem; font-weight: 500;
}

.alert-success { background: rgba(46,204,113,0.15); color: #1e8449; border: 1px solid rgba(46,204,113,0.3); }
.alert-danger { background: rgba(231,76,60,0.15); color: #c0392b; border: 1px solid rgba(231,76,60,0.3); }
.alert-warning { background: rgba(243,156,18,0.15); color: #d68910; border: 1px solid rgba(243,156,18,0.3); }
.alert-info { background: rgba(52,152,219,0.15); color: #2471a3; border: 1px solid rgba(52,152,219,0.3); }

.empty-state { text-align: center; padding: 3rem; color: var(--gray-500); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.detail-item label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; display: block; margin-bottom: 0.25rem; }
.detail-item span { font-weight: 600; color: var(--dark); }

.filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tabs a {
    padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem;
    background: white; color: var(--gray-700); border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.filter-tabs a.active, .filter-tabs a:hover { background: var(--primary); color: white; border-color: var(--primary); }

@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { max-width: 400px; margin: 0 auto; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .admin-content div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .landing-nav .nav-links { gap: 1rem; font-size: 0.9rem; }
    .user-nav-links { display: none; }
}

/* ─── Law Enforcement Panel ─── */
.law-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0a1628 0%, #152238 100%);
    color: rgba(255,255,255,0.85);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    overflow-y: auto;
}

.law-sidebar .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
.law-sidebar .brand-icon { background: #2563eb; }
.law-sidebar .sidebar-nav a:hover,
.law-sidebar .sidebar-nav a.active {
    background: rgba(37,99,235,0.15);
    border-left-color: #3b82f6;
}

.law-topbar {
    background: white;
    border-bottom: 3px solid #2563eb;
}

.law-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.35rem 0.85rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
}

.badge-received { background: rgba(52,152,219,0.15); color: #2980b9; }
.badge-under-investigation { background: rgba(243,156,18,0.15); color: #d68910; }
.badge-action-taken { background: rgba(46,204,113,0.15); color: #1e8449; }
.badge-closed { background: rgba(149,165,166,0.2); color: #566573; }
.badge-fake-report { background: rgba(231,76,60,0.15); color: #c0392b; }
.badge-need-more-information { background: rgba(155,89,182,0.15); color: #7d3c98; }

.case-timeline { position: relative; padding-left: 2rem; }
.case-timeline::before {
    content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px; background: var(--gray-300);
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.65rem; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #2563eb; border: 2px solid white;
    box-shadow: 0 0 0 2px #2563eb;
}
.timeline-item .timeline-date { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.timeline-item .timeline-body {
    background: var(--gray-100); border-radius: 8px; padding: 1rem;
    border-left: 3px solid #2563eb;
}

.info-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}

.info-panel.warning-panel {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.detail-card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
}

.detail-card {
    background: var(--gray-100); border-radius: 8px; padding: 1rem;
    border-left: 3px solid #2563eb;
}

.detail-card label {
    display: block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--gray-500); margin-bottom: 0.35rem;
}

.detail-card span { font-weight: 600; color: var(--dark); font-size: 0.95rem; }

.crud-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.page-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}

.status-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-pills a {
    padding: 0.45rem 1rem; border-radius: 20px; font-size: 0.85rem;
    background: white; border: 1px solid var(--gray-300); color: var(--gray-700);
    transition: var(--transition);
}
.status-pills a.active, .status-pills a:hover {
    background: #2563eb; color: white; border-color: #2563eb;
}

.law-profile-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}

.law-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.risk-indicator {
    display: inline-block; width: 10px; height: 10px;
    border-radius: 50%; margin-right: 6px;
}
.risk-low { background: #2ecc71; }
.risk-medium { background: #f39c12; }
.risk-high { background: #e74c3c; }
.risk-critical { background: #c0392b; box-shadow: 0 0 6px #e74c3c; }

/* ─── Student Panel ─── */
.student-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d4f4f 0%, #0a3d3d 100%);
    color: rgba(255,255,255,0.85);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    overflow-y: auto;
}

.student-sidebar .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
.student-sidebar .brand-icon { background: var(--accent); }
.student-sidebar .sidebar-nav a:hover,
.student-sidebar .sidebar-nav a.active {
    background: rgba(46,204,113,0.12);
    border-left-color: var(--accent);
}

.student-topbar {
    background: white;
    border-bottom: 3px solid var(--primary);
}

.student-topbar .class-badge {
    background: rgba(13,79,79,0.1);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.guidance-card {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); transition: var(--transition);
    border-top: 3px solid var(--primary); height: 100%;
}

.guidance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guidance-card .guidance-category {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--accent-hover); font-weight: 600; margin-bottom: 0.5rem;
}

.guidance-card h3 { color: var(--dark); font-size: 1.05rem; margin-bottom: 0.75rem; }
.guidance-card p { color: var(--gray-700); font-size: 0.92rem; line-height: 1.6; }

.student-profile-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}

.student-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.detail-card.student-detail { border-left-color: var(--primary); }

.progress-ring-wrap {
    text-align: center; padding: 1rem;
}

.progress-score {
    font-size: 2rem; font-weight: 800; color: var(--accent);
}

.quiz-answer-correct {
    background: rgba(46,204,113,0.12); border: 2px solid var(--accent);
    border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}

.quiz-answer-wrong {
    background: rgba(231,76,60,0.08); border: 2px solid var(--danger);
    border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}

.anonymous-badge {
    background: rgba(13,79,79,0.1); color: var(--primary);
    padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
}

.status-pills.student-pills a.active,
.status-pills.student-pills a:hover {
    background: var(--primary); border-color: var(--primary);
}

.status-pills.parent-pills a.active,
.status-pills.parent-pills a:hover {
    background: #7c3aed; border-color: #7c3aed;
}

.parent-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #3b0764 0%, #4c1d95 100%);
    color: rgba(255,255,255,0.85);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    overflow-y: auto;
}

.parent-sidebar .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
.parent-sidebar .brand-icon { background: #a78bfa; }
.parent-sidebar .sidebar-nav a:hover,
.parent-sidebar .sidebar-nav a.active {
    background: rgba(167,139,250,0.15);
    border-left-color: #a78bfa;
}

.parent-topbar {
    background: white;
    border-bottom: 3px solid #7c3aed;
}

.parent-topbar .child-badge {
    background: rgba(124,58,237,0.1);
    color: #6d28d9;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-card.parent-detail { border-left-color: #7c3aed; }

.parent-profile-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}

.parent-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.contact-card {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}

.contact-card .contact-type {
    font-size: 0.75rem; text-transform: uppercase; color: var(--primary);
    font-weight: 600; letter-spacing: 0.5px;
}

.contact-card.parent-contact { border-left-color: #7c3aed; }
.contact-card.parent-contact .contact-type { color: #7c3aed; }

/* ─── Educator Panel ─── */
.educator-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e3a5f 0%, #1e40af 100%);
    color: rgba(255,255,255,0.85);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    overflow-y: auto;
}

.educator-sidebar .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
.educator-sidebar .brand-icon { background: #f59e0b; }
.educator-sidebar .sidebar-nav a:hover,
.educator-sidebar .sidebar-nav a.active {
    background: rgba(245,158,11,0.15);
    border-left-color: #f59e0b;
}

.educator-topbar {
    background: white;
    border-bottom: 3px solid #1e40af;
}

.educator-topbar .dept-badge {
    background: rgba(30,64,175,0.1);
    color: #1e40af;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-card.educator-detail { border-left-color: #1e40af; }

.educator-profile-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}

.educator-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #f59e0b);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.status-pills.educator-pills a.active,
.status-pills.educator-pills a:hover {
    background: #1e40af; border-color: #1e40af;
}

.guidance-card.educator-card { border-top-color: #1e40af; }
.guidance-card.educator-card .guidance-category { color: #1e40af; }
