:root {
    --pics-primary: #1a3c6e;
    --pics-gold: #c9a84c;
    --pics-bg: #f4f6fb;
}

html, body { margin: 0; padding: 0; }


/* ─── Auth Layout ─── */
.auth-bg {
    background: var(--pics-bg);
    min-height: 100vh;
}
.auth-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.09);
}

/* ─── Logo ─── */
.pics-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pics-primary);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

/* ─── Navbar ─── */
.pics-navbar { background: var(--pics-primary) !important; }
.pics-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.pics-logo-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pics-gold);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

/* ─── Demo Nav ─── */
.demo-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(12, 25, 55, 0.97);
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 2px solid var(--pics-gold);
}
.demo-nav .demo-label {
    color: var(--pics-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.demo-nav a {
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.demo-nav a:hover { color: var(--pics-gold); background: rgba(255,255,255,0.07); }
.demo-nav .demo-sep {
    color: rgba(255,255,255,0.2);
    margin: 0 2px;
    font-size: 11px;
}

/* ─── Buttons ─── */
.btn-pics-primary {
    background: var(--pics-primary);
    border-color: var(--pics-primary);
    color: #fff;
    font-weight: 600;
}
.btn-pics-primary:hover, .btn-pics-primary:focus {
    background: #142e56;
    border-color: #142e56;
    color: #fff;
}

/* ─── Step Wizard ─── */
.step-wizard {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 8px 8px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 90px;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #dee2e6;
}
.step-item.done:not(:last-child)::after { background: var(--pics-primary); }
.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    z-index: 1;
    position: relative;
}
.step-item.active .step-circle { background: var(--pics-primary); color: #fff; }
.step-item.done .step-circle { background: var(--pics-gold); color: #fff; }
.step-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    line-height: 1.2;
}
.step-item.active .step-label { color: var(--pics-primary); font-weight: 600; }
.step-item.done .step-label { color: var(--pics-gold); }

/* ─── Register Banner ─── */
.register-banner {
    background: linear-gradient(135deg, var(--pics-primary) 70%, #1e4d8c);
    color: white;
    border-radius: 14px 14px 0 0;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.security-badge {
    background: var(--pics-gold);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Sector Checkboxes ─── */
.sector-list {
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px;
}
.sector-list .form-check {
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 10px;
    border-radius: 6px;
    transition: background 0.1s;
    cursor: pointer;
}
.sector-list .form-check:hover { background: #f0f4fa; }
.sector-list .form-check-input:checked + .form-check-label {
    color: var(--pics-primary);
    font-weight: 600;
}

/* ─── Form Focus ─── */
.form-control:focus, .form-select:focus {
    border-color: var(--pics-primary);
    box-shadow: 0 0 0 0.2rem rgba(26,60,110,0.14);
}

/* ─── Password Toggle ─── */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    z-index: 5;
    line-height: 1;
}
.password-toggle:hover { color: var(--pics-primary); }
.password-wrapper .form-control { padding-right: 38px; }

/* ─── Alert ─── */
.alert { border-radius: 8px; }

/* ─── Print ─── */
@media print {
    .demo-nav, .navbar, .no-print { display: none !important; }
}

/* ─── Admin Layout ─── */
.admin-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 220px;
    height: 100vh;
    background: var(--pics-primary);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.25s ease;
}
.admin-sidebar .sidebar-logo {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.sidebar-logo-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pics-gold);
    color: #fff; font-size: 17px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.admin-nav { flex: 1; padding: 10px 0; }
.admin-nav-section {
    font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.28); font-weight: 700;
    padding: 14px 18px 3px;
}
.admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px;
    color: rgba(255,255,255,0.62);
    text-decoration: none; font-size: 13.5px; font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.admin-nav-item i { font-size: 16px; flex-shrink: 0; }
.admin-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
    border-left-color: rgba(255,255,255,0.25);
}
.admin-nav-item.active {
    color: #fff;
    background: rgba(201,168,76,0.16);
    border-left-color: var(--pics-gold);
    font-weight: 600;
}
.sidebar-user {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center;
    flex-shrink: 0;
}
.sidebar-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--pics-gold);
    color: #fff; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ─── Admin Wrapper ─── */
.admin-wrapper {
    margin-left: 220px;
    min-height: 100vh;
    display: flex; flex-direction: column;
    background: var(--pics-bg);
}
.admin-topbar {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0 24px;
    height: 62px;
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 1030;
    flex-shrink: 0;
}
.admin-content {
    padding: 28px 28px 40px;
    flex: 1;
}

/* ─── Stat Cards ─── */
.stat-card {
    background: #fff;
    border: none; border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
}
.stat-value { font-size: 30px; font-weight: 700; color: #1a1e2e; line-height: 1.1; }
.stat-label { font-size: 12px; color: #7a8099; font-weight: 500; }

/* ─── Section Cards ─── */
.section-card {
    background: #fff;
    border: none; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
    overflow: hidden;
}
.section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; justify-content: space-between;
}
.section-title {
    font-size: 14px; font-weight: 700;
    color: var(--pics-primary); margin: 0;
}

/* ─── Admin Responsive ─── */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.sidebar-open { transform: translateX(0); }
    .admin-wrapper { margin-left: 0; }
    .admin-content { padding: 20px 16px 40px; }
}

/* ─── Volunteer Layout ─── */
.vol-sidebar {
    position: fixed; top: 0; left: 0;
    width: 220px; height: 100vh;
    background: #fff;
    border-right: 1px solid #e9ecef;
    z-index: 1040;
    display: flex; flex-direction: column;
    overflow-y: auto; transition: transform 0.25s ease;
}
.vol-sidebar-logo {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; gap: 10px;
}
.vol-logo-circle {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--pics-primary); color: #fff;
    font-size: 15px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.vol-sidebar-breadcrumb {
    padding: 12px 20px 10px;
    font-size: 10px; color: #9ca3af; line-height: 1.5;
    border-bottom: 1px solid #f0f2f5;
}
.vol-nav { flex: 1; padding: 10px 0; }
.vol-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px;
    color: #6b7280; text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.vol-nav-item i { font-size: 16px; flex-shrink: 0; }
.vol-nav-item:hover {
    color: var(--pics-primary); background: #f8f9ff;
    border-left-color: rgba(26,60,110,0.3);
}
.vol-nav-item.active {
    color: var(--pics-primary); background: #eef2ff;
    border-left-color: var(--pics-primary); font-weight: 600;
}
.vol-sidebar-footer { padding: 14px 20px; border-top: 1px solid #f0f2f5; }
.vol-signout {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none;
    color: #dc2626; font-size: 13px; font-weight: 500;
    cursor: pointer; padding: 0;
}
.vol-signout:hover { color: #b91c1c; }
.vol-wrapper {
    margin-left: 220px; min-height: 100vh;
    display: flex; flex-direction: column;
    background: var(--pics-bg);
}
.vol-topbar {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1030;
}
.vol-topbar-breadcrumb { font-size: 12px; color: #9ca3af; font-weight: 500; }
.vol-topbar-breadcrumb span { color: #374151; font-weight: 600; }
.vol-content { padding: 28px 28px 40px; flex: 1; }

/* XP / Level Card */
.xp-card {
    background: #fff; border: none; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
    padding: 20px 24px;
}
.xp-bar-track {
    background: #e9ecef; border-radius: 8px; height: 12px; overflow: hidden;
}
.xp-bar-fill {
    background: var(--pics-primary); height: 100%;
    border-radius: 8px; transition: width 0.6s ease;
}

/* ─── Volunteer Responsive ─── */
@media (max-width: 991.98px) {
    .vol-sidebar { transform: translateX(-100%); }
    .vol-sidebar.sidebar-open { transform: translateX(0); }
    .vol-wrapper { margin-left: 0; }
    .vol-content { padding: 20px 16px 40px; }
}

/* ─── Mobile Sidebar Overlay ─── */
#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1035; /* above topbar (1030), below sidebar (1040) */
}
#sidebar-overlay.show { display: block; }
@media (min-width: 992px) {
    #sidebar-overlay { display: none !important; }
}

/* ─── Global Mobile Responsive Utilities ─── */
@media (max-width: 767px) {
    .table-responsive-mobile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .row > [class*="col-md"] { margin-bottom: 1rem; }
    .card-body { padding: 0.75rem !important; }
    .stats-card { flex: 0 0 48% !important; max-width: 48% !important; }
    .hide-mobile { display: none !important; }
    .form-row .col-md-3,
    .form-row .col-md-4,
    .form-row .col-md-6 {
        width: 100% !important;
        flex: 100% !important;
        max-width: 100% !important;
    }
    .top-navbar { padding: 8px 12px !important; }
    h1, .page-title { font-size: 1.4rem !important; }
}

/* ─── Public / Landing Page ─── */
.pics-public-nav {
    background: #1a3c6e !important;
    padding: 10px 0;
    transition: box-shadow 0.2s ease;
}
.pics-public-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.28);
}
.pics-pub-link {
    color: rgba(255,255,255,.7) !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s;
    padding: 6px 12px !important;
}
.pics-pub-link:hover { color: #fff !important; }

/* Feature Cards */
.pics-feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pics-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.09);
}
.pics-feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,.1);
    margin-bottom: 16px;
}
.pics-feature-title {
    font-size: 15px; font-weight: 700;
    color: #1a1e2e; margin-bottom: 8px;
}
.pics-feature-desc {
    font-size: 13.5px; color: #6b7280;
    line-height: 1.65; margin: 0;
}

/* Step Cards */
.pics-step-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 32px 28px;
    height: 100%;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pics-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.09);
}
.pics-step-number {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--pics-primary);
    color: #fff;
    font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.pics-step-icon { margin-bottom: 14px; }
.pics-step-title {
    font-size: 17px; font-weight: 700;
    color: #1a1e2e; margin-bottom: 10px;
}
.pics-step-desc {
    font-size: 13.5px; color: #6b7280;
    line-height: 1.65; margin: 0;
}

/* Security Cards */
.pics-security-card {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 28px 22px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pics-security-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.09);
    background: #fff;
}
.pics-security-icon {
    width: 48px; height: 48px;
    border-radius: 11px;
    background: rgba(201,168,76,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--pics-gold);
    margin-bottom: 14px;
}
.pics-security-title {
    font-size: 14px; font-weight: 700;
    color: #1a1e2e; margin-bottom: 8px;
}
.pics-security-desc {
    font-size: 12.5px; color: #6b7280;
    line-height: 1.65; margin: 0;
}

/* Footer link hover */
.footer-link:hover { color: var(--pics-gold) !important; }

/* Notification dropdown item hover */
.notif-item:hover { background: #f8f9fb; }
