/* ===========================================================
   Revival Portal — Master Stylesheet
   Pitch Black theme with Maroon Red (#5C000A) accent
   =========================================================== */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-dark:       #E9D2BF;
    --bg-darker:     #E0C5AE;
    --bg-surface:    #141414;
    --bg-card:       #1C1C1C;
    --bg-card-hover: #242424;
    --bg-input:      #1A1A1A;
    --bg-flow-silk:  #E9D2BF;

    /* Accent */
    --red:          #5C000A;
    --red-hover:    #3A0006;
    --red-light:    rgba(92, 0, 10, 0.15);
    --red-glow:     rgba(92, 0, 10, 0.25);

    /* Text */
    --text-primary:  #FFFFFF;
    --text-secondary:#E0E0E0;
    --text-muted:    #B5B5B5;
    --text-dim:      #777777;

    /* Text on light backgrounds */
    --text-on-light:       #2C1810;
    --text-on-light-muted: #5A3D2E;

    /* Status Colors */
    --success:       #2E9E5B;
    --success-bg:    rgba(46, 158, 91, 0.15);
    --warning:       #E0A82E;
    --warning-bg:    rgba(224, 168, 46, 0.15);
    --danger:        #D9453C;
    --danger-bg:     rgba(217, 69, 60, 0.15);
    --info:          #3B82F6;
    --info-bg:       rgba(59, 130, 246, 0.15);

    /* Borders */
    --border:        #2A2A2A;
    --border-light:  #333333;

    /* Sizing */
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius:        10px;
    --radius-sm:     6px;
    --radius-lg:     16px;

    /* Shadows */
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
    --shadow-red:   0 4px 20px rgba(211, 47, 47, 0.2);

    /* Transitions */
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Playfair Display', serif;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--red);
    font-style: italic;
    letter-spacing: 1px;
}


a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-red {
    background: linear-gradient(135deg, var(--red), var(--red-hover));
    color: #0B0B0B;
    box-shadow: var(--shadow-red);
}

.btn-red:hover {
    background: linear-gradient(135deg, var(--red-hover), #C62828);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(211, 47, 47, 0.35);
    color: #0B0B0B;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #247A47;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #B5352D;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
}
.btn-outline:hover {
    background: var(--red-light);
    color: var(--red);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.75rem;
}

.btn-xs {
    padding: 5px 12px;
    font-size: 0.7rem;
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* =============================================================
   ALERTS / FLASH MESSAGES
   ============================================================= */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: alertSlideIn 0.4s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #4ADE80;
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #F87171;
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: #FBBF24;
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info);
    color: #60A5FA;
}


/* =============================================================
   PUBLIC HEADER
   ============================================================= */
.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.public-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.public-nav a:hover {
    color: var(--red);
}


/* =============================================================
   PUBLIC MAIN / FORM
   ============================================================= */
.public-main {
    min-height: calc(100vh - 70px - 200px);
    padding: 50px 0;
}

.form-hero {
    text-align: center;
    margin-bottom: 40px;
}

.form-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: var(--text-on-light);
}

.form-hero .red-line {
    width: 60px;
    height: 3px;
    background: var(--red);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.form-hero p {
    color: var(--text-on-light-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Card / Form Card ─────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.card-sm {
    padding: 24px;
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B5B5B5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ── Captcha ──────────────────────────────────────────────── */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.captcha-group img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    height: 48px;
}

.captcha-group .form-control {
    max-width: 160px;
}

.captcha-refresh {
    font-size: 0.8rem;
    color: var(--red);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

.captcha-refresh:hover {
    color: var(--red-hover);
}


/* =============================================================
   THANK YOU / CONFIRM PAGE
   ============================================================= */
.thankyou-page {
    text-align: center;
    padding: 80px 0;
}

.thankyou-page .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(92, 0, 10, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thankyou-page h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-on-light);
}

.thankyou-page p {
    color: var(--text-on-light-muted);
    max-width: 460px;
    margin: 0 auto 30px;
}


/* =============================================================
   PUBLIC FOOTER
   ============================================================= */
.public-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.875rem;
    font-style: italic;
}

.footer-contact h4,
.footer-social h4 {
    color: var(--red);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-contact p {
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--text-muted);
}
.footer-contact a:hover {
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--red);
    color: #0B0B0B;
    border-color: var(--red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin: 0;
}


/* =============================================================
   ADMIN SIDEBAR
   ============================================================= */
.admin-page {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: var(--transition);
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-logo {
    height: 38px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 8px;
}

.sidebar-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    padding: 4px 14px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--red-light);
    color: var(--red);
}

.nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #0B0B0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.admin-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}


/* =============================================================
   ADMIN CONTENT AREA
   ============================================================= */
.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.admin-content.expanded {
    margin-left: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-height);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
}

.sidebar-toggle:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.topbar-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =============================================================
   ADMIN BODY
   ============================================================= */
.admin-body {
    padding: 28px;
}


/* =============================================================
   DASHBOARD WIDGETS
   ============================================================= */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0;
    transition: var(--transition);
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.widget-card:hover::before {
    opacity: 1;
}

.widget-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.widget-card.success .widget-value { color: var(--success); }
.widget-card.warning .widget-value { color: var(--warning); }
.widget-card.danger  .widget-value { color: var(--danger); }
.widget-card.red    .widget-value { color: var(--red); }


/* =============================================================
   CHARTS
   ============================================================= */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.chart-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.chart-wrapper {
    position: relative;
    max-height: 300px;
}


/* =============================================================
   DATA TABLES (override DataTables default styles)
   ============================================================= */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* DataTables overrides for dark theme */
.dataTables_wrapper {
    color: var(--text-secondary) !important;
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
}

table.dataTable thead th {
    background: var(--bg-surface) !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 14px !important;
    border-bottom: 2px solid var(--border) !important;
}

table.dataTable tbody td {
    padding: 12px 14px !important;
    font-size: 0.8375rem !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

table.dataTable tbody tr:hover td {
    background: var(--bg-card-hover) !important;
}

table.dataTable tbody tr.odd {
    background: transparent !important;
}

table.dataTable tbody tr.even {
    background: rgba(255,255,255,0.015) !important;
}

.dataTables_filter input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 8px 14px !important;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    margin-left: 8px !important;
}

.dataTables_filter input:focus {
    border-color: var(--red) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--red-light) !important;
}

.dataTables_length select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 6px 10px !important;
}

.dataTables_info {
    color: var(--text-dim) !important;
    font-size: 0.8rem !important;
    padding-top: 16px !important;
}

.dataTables_paginate {
    padding-top: 16px !important;
}

.dataTables_paginate .paginate_button {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-muted) !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    font-size: 0.8rem !important;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--bg-card-hover) !important;
    color: var(--red) !important;
    border-color: var(--red) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--red) !important;
    color: #0B0B0B !important;
    border-color: var(--red) !important;
    font-weight: 600 !important;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.4 !important;
}

.dt-top, .dt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* =============================================================
   STATUS BADGES
   ============================================================= */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
}

.badge-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(224, 168, 46, 0.3);
}

.badge-approved {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(46, 158, 91, 0.3);
}

.badge-rejected {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(217, 69, 60, 0.3);
}

.badge-role {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(211, 47, 47, 0.3);
}


/* =============================================================
   USER DETAIL VIEW
   ============================================================= */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-header {
    background: var(--bg-surface);
    padding: 30px 36px;
    border-bottom: 3px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.detail-body {
    padding: 32px 36px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-field {
    margin-bottom: 4px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-word;
}

.detail-value a {
    color: var(--red);
}

.detail-footer {
    padding: 20px 36px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* =============================================================
   LOGIN PAGE
   ============================================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-card .logo-img {
    height: 48px;
    margin-bottom: 28px;
}

.login-card h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-card .subtitle {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.login-card .form-group {
    text-align: left;
}


/* =============================================================
   CONFIRM/CHECK ICONS
   ============================================================= */
.icon-check {
    color: var(--success);
    font-weight: 700;
}

.icon-cross {
    color: var(--danger);
    font-weight: 700;
}


/* =============================================================
   FILTER BAR
   ============================================================= */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-bar select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.85rem;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-header .container {
        height: 60px;
    }

    .logo-img {
        height: 36px;
    }

    .form-hero h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 24px;
    }

    .detail-header,
    .detail-body,
    .detail-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }

    .public-nav {
        gap: 12px;
    }

    .btn-group {
        flex-direction: column;
    }

    .captcha-group {
        flex-wrap: wrap;
    }
}


/* =============================================================
   UTILITY CLASSES
   ============================================================= */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-red   { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex     { display: flex; }
.gap-1      { gap: 8px; }
.gap-2      { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }


/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.15s;
}

/* Subtle pulse for widget values */
@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.widget-card:hover .widget-value {
    animation: countPulse 0.4s ease;
}
