:root {
    --primary: #00274c;
    --primary-dark: #001a33;
    --primary-light: #003d6b;
    --accent: #ffcd00;
    --accent-dark: #cc9e00;
    --accent-light: #fff3c4;
    --red: #ff0000;
    --red-dark: #cc0000;
    --success: #2e7d32;
    --info: #1565c0;
    --gray-900: #222222;
    --gray-700: #495057;
    --gray-500: #6c757d;
    --gray-300: #dee2e6;
    --gray-100: #f3f1ee;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
    --font-main: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Outfit', 'Georgia', 'Times New Roman', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================
   ACCESSIBILITY - Floating Icon + Panel
   ============================== */
.a11y-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    transition: var(--transition);
    border: 2px solid var(--accent);
}
.a11y-fab:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.08);
}
.a11y-fab.active {
    background: var(--accent);
    color: var(--primary);
}

.a11y-panel {
    position: fixed;
    bottom: 148px;
    right: 30px;
    width: 232px;
    max-height: 75vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border: 1px solid var(--gray-300);
}
.a11y-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.a11y-panel::-webkit-scrollbar { width: 5px; }
.a11y-panel::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-300);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.a11y-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0 2px;
    line-height: 1;
    transition: var(--transition);
}
.a11y-close:hover {
    color: var(--red);
}

.a11y-panel-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a11y-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    padding: 10px 12px 4px;
}

.a11y-panel-body button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-main);
}
.a11y-panel-body button:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.a11y-panel-body button.active {
    background: var(--accent-light);
    color: var(--primary);
    font-weight: 600;
}

.a11y-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.a11y-divider {
    height: 1px;
    background: var(--gray-300);
    margin: 4px 8px;
}

.a11y-reset {
    color: var(--red) !important;
}
.a11y-reset:hover {
    background: #fff0f0 !important;
}

/* ==============================
   ACCESSIBILITY FEATURE CLASSES
   ============================== */

/* --- Vision / Low Vision --- */
body.a11y-large-text { font-size: 120%; }
body.a11y-readable-fonts { font-family: 'Verdana', sans-serif; }
body.a11y-underline-links a { text-decoration: underline !important; }
body.a11y-line-height { line-height: 2.2 !important; }
body.a11y-letter-spacing { letter-spacing: 1.5px !important; word-spacing: 3px !important; }
body.a11y-light-bg { background: var(--white) !important; }

body.a11y-high-contrast {
    color: #000 !important;
    text-shadow: none !important;
}
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6,
body.a11y-high-contrast strong,
body.a11y-high-contrast b {
    color: #000 !important;
    font-weight: 800 !important;
}
body.a11y-high-contrast p,
body.a11y-high-contrast li,
body.a11y-high-contrast span,
body.a11y-high-contrast label,
body.a11y-high-contrast td,
body.a11y-high-contrast th {
    color: #1a1a1a !important;
}

body.a11y-highlight-focus *:focus {
    outline: 4px solid var(--accent) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(245,197,24,0.3) !important;
}

body.a11y-screen-reader .hero h1 { font-size: 28px; }
body.a11y-screen-reader .hero .tagline { font-size: 16px; }

.a11y-sr-read-btn {
    position: fixed;
    bottom: 150px;
    right: 30px;
    background: var(--info);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
    z-index: 1101;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-main);
}
.a11y-sr-read-btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.35);
}

body.a11y-bold-text { font-weight: 700 !important; }
body.a11y-bold-text * { font-weight: inherit !important; }
body.a11y-bold-text h1,
body.a11y-bold-text h2,
body.a11y-bold-text h3 { font-weight: 900 !important; }

/* --- Color Blind --- */
body.a11y-deuteranopia {
    filter: url('#deuteranopia-filter') saturate(1.4);
}
body.a11y-protanopia {
    filter: url('#protanopia-filter') saturate(1.4);
}
body.a11y-tritanopia {
    filter: url('#tritanopia-filter') saturate(1.4);
}
body.a11y-grayscale { filter: grayscale(100%); }

/* Exclude floating elements from body filters so they remain visible and fixed */
body.a11y-deuteranopia .a11y-fab,
body.a11y-deuteranopia .a11y-panel,
body.a11y-deuteranopia .floating-report-btn,
body.a11y-deuteranopia .report-popup-overlay,
body.a11y-deuteranopia .a11y-sr-read-btn,
body.a11y-protanopia .a11y-fab,
body.a11y-protanopia .a11y-panel,
body.a11y-protanopia .floating-report-btn,
body.a11y-protanopia .report-popup-overlay,
body.a11y-protanopia .a11y-sr-read-btn,
body.a11y-tritanopia .a11y-fab,
body.a11y-tritanopia .a11y-panel,
body.a11y-tritanopia .floating-report-btn,
body.a11y-tritanopia .report-popup-overlay,
body.a11y-tritanopia .a11y-sr-read-btn,
body.a11y-grayscale .a11y-fab,
body.a11y-grayscale .a11y-panel,
body.a11y-grayscale .floating-report-btn,
body.a11y-grayscale .report-popup-overlay,
body.a11y-grayscale .a11y-sr-read-btn {
    filter: none !important;
}

body.a11y-enhanced-borders a,
body.a11y-enhanced-borders button,
body.a11y-enhanced-borders input,
body.a11y-enhanced-borders select,
body.a11y-enhanced-borders textarea,
body.a11y-enhanced-borders [role="button"],
body.a11y-enhanced-borders .btn,
body.a11y-enhanced-borders .btn-primary,
body.a11y-enhanced-borders .btn-outline,
body.a11y-enhanced-borders .btn-report,
body.a11y-enhanced-borders .btn-login {
    border: 2px solid #000 !important;
    box-shadow: none !important;
}
body.a11y-enhanced-borders .status-badge {
    border: 2px solid #000 !important;
    color: #000 !important;
    background: #fff !important;
}

/* --- Hearing --- */
body.a11y-visual-alerts .alert,
body.a11y-visual-alerts .alert-error,
body.a11y-visual-alerts .alert-success,
body.a11y-visual-alerts .alert-warning {
    border-left: 6px solid var(--red) !important;
    animation: a11y-flash 1.5s ease infinite;
}
@keyframes a11y-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Screen reader only (visually hidden, read by AT) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==============================
   NAVBAR - Light, clean, minimal
   ============================== */
.navbar {
    background: var(--white);
    background-color: var(--white);
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
}

.navbar-brand .logo-icon {
    height: 64px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand .logo-icon img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--gray-700);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--accent-light);
    color: var(--primary);
}

.navbar-nav .btn-report {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.navbar-nav .btn-report:hover {
    background: var(--accent-dark);
}

.navbar-nav .btn-login {
    background: var(--gray-100);
    color: var(--primary) !important;
    font-weight: 600;
    border: 1px solid var(--gray-300);
}

.navbar-nav .btn-login:hover {
    background: var(--gray-300);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
}

/* ==============================
   HERO - Image background, buttons blend in
   ============================== */
.hero {
    background: url('../assets/images/safeguarding.png') center center / cover no-repeat;
    color: var(--white);
    padding: 0 40px 40px;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 30%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero .tagline {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 16px;
    opacity: 0.92;
    max-width: 480px;
    margin: 0 0 28px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ==============================
   BUTTONS - Consistent everywhere
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-danger:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #1b5e20;
}

.btn-warning {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.btn-info {
    background: var(--primary);
    color: var(--white);
}

/* ==============================
   SECTIONS - Clean, minimal
   ============================== */
.section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-500);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Hotline Banner */
.hotline-banner {
    background: var(--accent-light);
    color: var(--primary);
    padding: 18px 40px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

.hotline-banner strong {
    font-size: 20px;
    color: var(--accent-dark);
}

.hotline-banner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid rgba(26,26,26,0.2);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
}

/* Reporting Methods */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.method-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.method-card .method-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.method-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
}

.method-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ==============================
   FORMS - Clean, approachable
   ============================== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
}

.form-container h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 8px;
}

.form-container .form-subtitle {
    color: var(--gray-500);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group label .required {
    color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    accent-color: var(--accent-dark);
}

.identity-note {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Track Page */
.track-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.track-container h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 16px;
}

.track-container p {
    color: var(--gray-500);
    margin-bottom: 30px;
}

.track-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.track-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-main);
}

.track-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.track-result {
    margin-top: 30px;
    text-align: left;
}

.track-result .result-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-300);
}

.track-result .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.track-result .tracking-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-submitted { background: #e3f2fd; color: #1565c0; }
.status-under_review { background: #fff8e1; color: #f57f17; }
.status-investigating { background: #fce4ec; color: #c62828; }
.status-resolved { background: #e8f5e9; color: #2e7d32; }
.status-closed { background: #f5f5f5; color: #616161; }

.timeline {
    margin-top: 20px;
    border-left: 3px solid var(--gray-300);
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item .time {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.timeline-item .event {
    font-size: 14px;
    color: var(--gray-700);
}

/* ==============================
   LOGIN - Clean, safe feel
   ============================== */
.login-container {
    max-width: 420px;
    margin: 60px auto;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-300);
    border-top: 4px solid var(--accent);
}

.login-card .login-logo {
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-card .login-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}

.login-card h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 24px;
}

.login-card .login-sub {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-card .form-group {
    text-align: left;
}

.login-card .password-wrapper {
    position: relative;
}

.login-card .password-wrapper input {
    padding-right: 50px;
}

.login-card .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 14px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

.login-card .login-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray-500);
}

.login-card .login-footer a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

/* ==============================
   DASHBOARD - Clean admin area
   ============================== */
.dashboard-header {
    background: var(--white);
    color: var(--primary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.dashboard-header h2 {
    font-family: var(--font-heading);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--gray-300);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card .stat-icon.blue { background: #e3f2fd; color: #1565c0; }
.stat-card .stat-icon.orange { background: var(--accent-light); color: var(--accent-dark); }
.stat-card .stat-icon.red { background: #fce4ec; color: var(--red); }
.stat-card .stat-icon.green { background: #e8f5e9; color: var(--success); }

.stat-card .stat-info h3 {
    font-size: 28px;
    color: var(--primary);
    line-height: 1;
}

.stat-card .stat-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.dashboard-content {
    padding: 0 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.incidents-table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-300);
}

.incidents-table-wrapper h3 {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
    font-family: var(--font-heading);
    color: var(--primary);
}

.table-controls {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--gray-300);
}

.table-controls input,
.table-controls select {
    padding: 8px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
}

.table-controls input:focus,
.table-controls select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.table-controls input {
    min-width: 250px;
}

.incidents-table {
    width: 100%;
    border-collapse: collapse;
}

.incidents-table th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.incidents-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-300);
    font-size: 14px;
}

.incidents-table tr:hover {
    background: var(--gray-100);
}

.incidents-table .actions {
    display: flex;
    gap: 6px;
}

.incidents-table .actions button,
.incidents-table .actions a {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 24px;
}

/* Policies */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.policy-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.policy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.policy-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
}

.policy-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

/* ==============================
   ADMIN DASHBOARD LAYOUT
   ============================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-100);
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--white);
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.25s ease;
    border-right: 1px solid var(--gray-200);
}

.sidebar-brand {
    padding: 20px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    height: 36px;
}

.sidebar-brand-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-brand-sub {
    font-size: 10px;
    color: var(--gray-500);
    display: block;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    padding: 16px 20px 6px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    margin: 1px 0;
}

.sidebar-nav a:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.sidebar-nav a.active {
    color: var(--primary);
    background: rgba(245,197,24,0.1);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.8;
}

.sidebar-nav a.active .nav-icon {
    opacity: 1;
    color: var(--accent);
}

.sidebar-nav a .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.sidebar-submenu.open {
    max-height: 300px;
}

.sidebar-submenu a {
    padding-left: 52px;
    font-size: 13px;
}

.sidebar-submenu a .nav-icon {
    font-size: 6px;
    opacity: 0.5;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    border-left: 3px solid transparent;
    margin: 1px 0;
    transition: all 0.15s;
}

.sidebar-toggle-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.sidebar-toggle-btn .toggle-arrow {
    font-size: 10px;
    transition: transform 0.25s;
}

.sidebar-toggle-btn.open .toggle-arrow {
    transform: rotate(90deg);
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: capitalize;
}

.sidebar-logout {
    display: block;
    padding: 12px 20px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid var(--gray-200);
    transition: color 0.15s;
}

.sidebar-logout:hover {
    color: var(--red);
}

/* Main content area */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

/* Sidebar collapse button */
.sidebar-collapse-btn {
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--gray-600);
    transition: all 0.2s;
    line-height: 1;
}
.sidebar-collapse-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--gray-400);
}

/* Collapsed sidebar */
body.sidebar-collapsed .admin-sidebar {
    width: 64px;
    overflow: hidden;
}
body.sidebar-collapsed .admin-sidebar .sidebar-brand > div,
body.sidebar-collapsed .admin-sidebar .sidebar-brand-text,
body.sidebar-collapsed .admin-sidebar .sidebar-brand-sub,
body.sidebar-collapsed .admin-sidebar .sidebar-section-label,
body.sidebar-collapsed .admin-sidebar .sidebar-nav a span:not(.nav-icon),
body.sidebar-collapsed .admin-sidebar .sidebar-nav a span.nav-badge,
body.sidebar-collapsed .admin-sidebar .sidebar-toggle-btn span,
body.sidebar-collapsed .admin-sidebar .sidebar-submenu,
body.sidebar-collapsed .admin-sidebar .sidebar-user-info,
body.sidebar-collapsed .admin-sidebar .sidebar-logout {
    display: none !important;
}
body.sidebar-collapsed .admin-sidebar .sidebar-brand {
    justify-content: center;
    padding: 16px 8px;
}
body.sidebar-collapsed .admin-sidebar .sidebar-brand img {
    height: 32px;
}
body.sidebar-collapsed .admin-sidebar .sidebar-nav a {
    justify-content: center;
    padding: 12px 0;
    border-left: none;
    gap: 0;
}
body.sidebar-collapsed .admin-sidebar .sidebar-nav .sidebar-toggle-btn {
    justify-content: center;
    padding: 12px 0;
}
body.sidebar-collapsed .admin-sidebar .sidebar-nav .nav-icon {
    font-size: 18px;
}
body.sidebar-collapsed .admin-sidebar .sidebar-user {
    justify-content: center;
    padding: 12px 8px;
}
body.sidebar-collapsed .admin-sidebar .sidebar-user-avatar {
    margin: 0;
}
body.sidebar-collapsed .admin-main {
    margin-left: 64px;
}

.admin-topbar {
    background: var(--white);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h1 {
    font-size: 20px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Bell */
.notif-bell-wrap { position: relative; }
.notif-bell-btn {
    background: none; border: none; cursor: pointer; font-size: 22px; position: relative; padding: 6px 10px;
    border-radius: var(--radius-sm); transition: background 0.2s;
}
.notif-bell-btn:hover { background: var(--gray-100); }
.notif-badge {
    position: absolute; top: 0; right: 0; background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 50%; padding: 0 4px;
}
.notif-dropdown {
    display: none; position: absolute; top: 100%; right: 0; width: 380px; max-height: 440px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); z-index: 1000; overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--gray-200);
}
.notif-dropdown-header strong { font-size: 14px; }
.notif-mark-all {
    background: none; border: none; color: var(--accent-dark); font-size: 12px; cursor: pointer; font-weight: 600;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-dropdown-list {
    max-height: 340px; overflow-y: auto;
}
.notif-drop-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
    text-decoration: none; color: var(--gray-800); border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.notif-drop-item:hover { background: var(--gray-50); }
.notif-drop-item.unread { background: #fffde7; }
.notif-drop-item.unread:hover { background: #fff8c4; }
.notif-drop-icon { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.notif-dropdown-footer {
    padding: 10px 16px; border-top: 1px solid var(--gray-200); text-align: center;
}
.notif-dropdown-footer a {
    font-size: 13px; color: var(--accent-dark); text-decoration: none; font-weight: 600;
}
.notif-dropdown-footer a:hover { text-decoration: underline; }

/* Notifications Page */
.notif-page-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100); transition: background 0.15s; position: relative;
}
.notif-page-item:hover { background: var(--gray-50); }
.notif-page-item.notif-unread { background: #fffde7; }
.notif-page-item.notif-unread:hover { background: #fff8c4; }
.notif-page-icon { flex-shrink: 0; margin-top: 2px; }
.notif-page-content { flex: 1; min-width: 0; }
.notif-page-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.notif-page-header strong { font-size: 14px; }
.notif-page-time { font-size: 11px; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }
.notif-page-message { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin: 0 0 6px; }
.notif-page-meta { display: flex; align-items: center; gap: 12px; }
.notif-page-link { font-size: 12px; color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.notif-page-link:hover { text-decoration: underline; }
.notif-page-type { font-size: 11px; color: var(--gray-400); }
.notif-page-read-btn {
    position: absolute; right: 16px; top: 16px; background: var(--gray-100); border: 1px solid var(--gray-300);
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 12px; color: var(--gray-600);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.notif-page-read-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.admin-body {
    padding: 28px 32px;
    flex: 1;
}

/* Stats row inside admin body */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.15s;
}

.admin-stat-card:hover {
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-stat-icon.blue { background: #e3f2fd; color: #1565c0; }
.admin-stat-icon.amber { background: #fff8e1; color: var(--accent-dark); }
.admin-stat-icon.orange { background: #fff3e0; color: #e65100; }
.admin-stat-icon.green { background: #e8f5e9; color: #2e7d32; }
.admin-stat-icon.red { background: #fce4ec; color: #c62828; }
.admin-stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }

.admin-stat-info h3 {
    font-size: 26px;
    color: var(--primary);
    line-height: 1;
}

.admin-stat-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Content cards */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    font-size: 16px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.admin-card-body {
    padding: 24px;
}

/* Sidebar mobile toggle */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

/* ==============================
   FOOTER - Light, minimal
   ============================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px;
    border-top: 2px solid var(--accent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 16px;
    font-family: var(--font-heading);
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 2;
    color: var(--gray-400);
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: var(--gray-400);
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--accent-light);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.alert-error {
    background: #fff0f0;
    color: var(--red);
    border: 1px solid #ffcccc;
}

.alert-info {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

/* Tracking code display */
.tracking-result {
    background: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 20px 0;
}

.tracking-result h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.tracking-result .code {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 2px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 10px 0;
    user-select: all;
    border: 1.5px solid var(--gray-300);
}

.tracking-result p {
    color: var(--gray-500);
    font-size: 13px;
}

/* ==============================
   FLOATING REPORT BUTTON
   ============================== */
.floating-report-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245,197,24,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: var(--transition);
}

.floating-report-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245,197,24,0.5);
}

/* ==============================
   REPORT POPUP
   ============================== */
.report-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.report-popup-overlay.active {
    display: flex;
}

.report-popup {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.report-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--accent);
}

.report-popup-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin: 0;
}

.report-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
    padding: 0 4px;
    transition: var(--transition);
}

.report-popup-close:hover {
    color: var(--primary);
}

.report-popup-body {
    padding: 24px;
}

.report-popup-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ==============================
   TRUST & SAFETY CARDS
   ============================== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.trust-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    text-align: center;
    transition: var(--transition);
}

.trust-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.trust-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.trust-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ==============================
   REPORT FORM - Human Friendly
   ============================== */
.report-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.report-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.sidebar-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.sidebar-info p {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 14px;
    line-height: 1.5;
}

.sidebar-info p strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.sidebar-info a {
    color: var(--info);
    text-decoration: none;
}
.sidebar-info a:hover {
    text-decoration: underline;
}

.sidebar-divider {
    height: 1px;
    background: var(--gray-300);
    margin: 16px 0;
}

.sidebar-offline-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.report-main {
    flex: 1;
    min-width: 0;
}

/* Confirmation Popup */
.confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.confirm-overlay.active {
    display: flex;
}

.confirm-popup {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: confirmSlideIn 0.3s ease;
}
@keyframes confirmSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.confirm-header {
    padding: 24px 28px 0;
}

.confirm-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.confirm-body {
    padding: 16px 28px 0;
}

.confirm-body > p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 16px;
}

.confirm-notice {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.confirm-notice p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}
.confirm-notice p:last-child {
    margin-bottom: 0;
}

.confirm-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 24px;
}

.confirm-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.confirm-cancel {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}
.confirm-cancel:hover {
    border-color: var(--gray-500);
    background: var(--gray-100);
}

.form-step {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}
.form-step:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(245,197,24,0.08);
}

.form-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px 0;
}

.form-step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

.form-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
}

.form-step-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

.form-step-body {
    padding: 20px 24px 24px;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.radio-card input[type="radio"]:checked + .radio-card-inner {
    border-color: var(--accent);
    background: var(--accent-light);
}

.radio-card:hover .radio-card-inner {
    border-color: var(--accent);
}

.radio-card-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 4px;
}

.radio-card-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Location Picker */
.location-picker {
    position: relative;
}

.location-search-wrap {
    position: relative;
}

.location-search-wrap input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--white);
}
.location-search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-md);
}
.location-suggestions.show {
    display: block;
}
.location-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.location-suggestion-item:hover {
    background: var(--accent-light);
}
.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-map {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    border: 2px solid var(--gray-300);
    z-index: 1;
}

.location-selected-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
}
.location-selected-text.has-value {
    color: var(--success);
    font-style: normal;
    font-weight: 600;
}

/* File Upload */
.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.file-upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.file-upload-hint {
    font-size: 12px;
    color: var(--gray-500);
}

.file-name-display {
    margin-top: 8px;
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    display: none;
}
.file-name-display.show {
    display: block;
}

/* Submit Section */
.form-submit-section {
    margin-top: 8px;
    text-align: center;
}

.form-submit-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 16px;
    justify-content: center;
    letter-spacing: 0.3px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(245,197,24,0.3);
}
.form-submit-btn:hover {
    box-shadow: 0 6px 24px rgba(245,197,24,0.45);
    transform: translateY(-2px);
}

.form-submit-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray-500);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-brand .logo-icon {
        height: 50px;
    }

    .navbar-brand .logo-icon img {
        height: 50px;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        gap: 4px;
        border-bottom: 2px solid var(--accent);
    }

    .navbar-nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 0 20px 30px;
        min-height: 360px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .tagline {
        font-size: 16px;
    }

    .section {
        padding: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px;
    }

    .track-form {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }

    .dashboard-stats {
        padding: 20px;
    }

    .dashboard-content {
        padding: 0 20px 20px;
    }

    .incidents-table-wrapper {
        overflow-x: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .floating-report-btn {
        bottom: 20px;
        right: 20px;
        left: auto;
        padding: 12px 20px;
        font-size: 14px;
    }

    .floating-report-text {
        display: none;
    }

    .a11y-fab {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .a11y-fab svg {
        width: 18px;
        height: 18px;
    }
    .a11y-panel {
        bottom: 128px;
        right: 20px;
        width: 200px;
    }
    .a11y-sr-read-btn {
        bottom: 135px;
        right: 20px;
        padding: 10px 18px;
        font-size: 13px;
    }

    .report-popup {
        max-width: 100%;
        max-height: 90vh;
        margin: 10px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .radio-cards {
        grid-template-columns: 1fr;
    }

    .form-step-header {
        padding: 16px 16px 0;
        gap: 12px;
    }
    .form-step-body {
        padding: 16px;
    }

    .location-map {
        height: 220px;
    }

    .report-layout {
        flex-direction: column;
    }

    .report-sidebar {
        width: 100%;
        position: static;
        order: 1;
    }

    .report-main {
        order: 2;
    }

    .confirm-actions {
        flex-direction: column;
    }

    /* Admin sidebar mobile */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px !important;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .sidebar-mobile-toggle {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-body {
        padding: 20px 16px;
    }

    .admin-topbar {
        padding: 14px 16px;
    }

    .admin-topbar h1 {
        font-size: 16px;
    }

    .notif-dropdown {
        width: 300px; right: -60px;
    }

    .admin-body > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
