*, *::before, *::after { box-sizing: border-box; }
/* global */
img, video, canvas, svg { max-width: 100%; }

:root {
    /* Cyber/Dark Theme Palette */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --card-dark: #1e293b;
    /* Slate 800 */
    --card-hover: #334155;
    /* Slate 700 */

    --primary-color: #3b82f6;
    /* Blue 500 */
    --secondary-color: #6366f1;
    /* Indigo 500 */
    --accent-color: #22d3ee;
    /* Cyan 400 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --success: #10b981;
    /* Emerald 500 */
    --danger: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */

    --glow-primary: 0 0 20px rgba(59, 130, 246, 0.5);
    --glow-accent: 0 0 20px rgba(34, 211, 238, 0.5);

    --font-main: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');


/* Background Animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: var(--font-main);
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e1b4b);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--radius-lg);
}

.glass-pro {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-border:hover::after {
    opacity: 1;
}


/* Auth Specific Styles */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 25%);
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    display: block;
}

.auth-wrapper::after {
    display: none;
    /* Removing the second element to simplify overlap */
}

/* Add a specific background for the wrapper itself */
.auth-wrapper {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        url("https://img.freepik.com/free-vector/dark-gradient-background-with-copy-space_53876-99548.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
}

/* Form Styles Enhanced */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.2s;
}

.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Auth Typography */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Button Enhanced */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Utility for Auth Logo */
.auth-logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.auth-logo-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    z-index: -1;
    opacity: 0.5;
}

/* Base Elements */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Navbar Overrides */
.navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar-nav a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: 0.2s;
}

.navbar-nav a:hover {
    color: var(--text-main);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

.container-fluid {
    width: 95%;
    max-width: 1800px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Bento Cards */
.bento-card,
.card {
    background: var(--card-dark);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    /* Added for standard flow pages */
}

.bento-card.compact {
    padding: 1.25rem;
}

.bento-card.compact .stat-value {
    font-size: 2.5rem;
}

.bento-card:hover,
.card:hover {
    transform: translateY(-5px) scale(1.01);
    background: var(--card-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card Spans */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -1.9rem;
    /* Align with border */
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--card-dark);
    border: 2px solid var(--primary-color);
    box-shadow: var(--glow-primary);
}

.timeline-dot.passed {
    border-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.timeline-dot.failed {
    border-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-cyber {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-primary);
    transition: 0.3s;
    display: inline-block;
}

.btn-cyber:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: 0.2s;
}

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

/* Stats */
.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}


/* Hero Buttons Standardization */
.btn-hero {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;
}

.btn-primary.btn-hero {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Dark Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Auth Split Layout */
.auth-split-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    background: var(--card-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 600px;
}

.auth-features {
    flex: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.auth-form-side {
    flex: 1.2;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-text h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hide Auth Wrapper Backgrounds as they are now internal to split view if preferred, 
   but keeping wrapper for centering on page is good */
.auth-wrapper {
    padding: 0 1rem;
}

.auth-card {
    box-shadow: none;
    background: transparent;
    border: none;
    max-width: 100%;
    padding: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-split-container {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-features {
        padding: 2rem;
        display: none;
    }

    .auth-form-side {
        padding: 2rem;
    }
}

/* ============================================================
   LIGHT MODE THEME
   ============================================================ */
[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --card-dark: #ffffff;
    --card-hover: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary-color: #2563eb;
    --secondary-color: #4f46e5;
    --accent-color: #0891b2;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
}

[data-theme="light"] body {
    background: linear-gradient(-45deg, #e2e8f0, #f1f5f9, #dbeafe, #ede9fe);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: #0f172a;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bento-card,
[data-theme="light"] .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .bento-card:hover,
[data-theme="light"] .card:hover {
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-control {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
}

[data-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="light"] th {
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] td {
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] tr:hover td {
    background: #f8fafc;
}

[data-theme="light"] footer {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid #dc2626;
    color: #991b1b;
}

[data-theme="light"] .alert-success {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid #059669;
    color: #065f46;
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

[data-theme="light"] .navbar-nav a {
    color: #475569;
}

[data-theme="light"] .navbar-nav a:hover {
    color: #0f172a;
}

/* ============================================================
   HAMBURGER MENU (MOBILE)
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.5rem;
    }

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

    .navbar-nav a {
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
    }

    .navbar-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    /* Container padding */
    .container,
    .container-fluid {
        padding: 0 0.75rem;
        margin: 1rem auto;
        width: 100%;
    }

    /* Bento grid: single column on mobile */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .span-2,
    .span-row-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Tables: horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    /* Cards: less padding on mobile */
    .bento-card,
    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* Auth split layout */
    .auth-split-container {
        flex-direction: column;
        margin: 0.5rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-side {
        padding: 1.5rem;
    }

    /* Stat values smaller on mobile */
    .stat-value {
        font-size: 2.5rem;
    }

    /* Dashboard header */
    .dashboard-header h1 {
        font-size: 1.8rem !important;
    }

    /* Buttons full width on small screens */
    .btn-hero {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: unset;
        width: 100%;
    }

    /* Admin settings sidebar */
    div[style*="width: 250px"] {
        width: 100% !important;
    }

    div[style*="display: flex; gap: 2rem"] {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .bento-card.compact .stat-value {
        font-size: 2rem;
    }

    td, th {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   BETTER TABLES: Sortable Headers & Search
   ============================================================ */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.table-search {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: 0.2s;
}

[data-theme="light"] .table-search {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.table-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-search::placeholder {
    color: var(--text-muted);
}

th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

th.sortable:hover {
    color: var(--text-main);
}

th.sortable::after {
    content: ' ⇅';
    opacity: 0.4;
    font-size: 0.75em;
}

th.sortable.asc::after {
    content: ' ↑';
    opacity: 1;
    color: var(--primary-color);
}

th.sortable.desc::after {
    content: ' ↓';
    opacity: 1;
    color: var(--primary-color);
}

.table-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Wrap existing tables in overflow container on mobile */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

/* ============================================================
   MISC IMPROVEMENTS
   ============================================================ */
/* Smooth page transitions */
.container, .container-fluid {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
/* ── Brand logo (Eminence Tally badge) ── */
img.brand-logo { display: block; object-fit: cover; padding: 0 !important; border: 0 !important; background: #f7f4ee !important; flex-shrink: 0; }
img.hx-logo-mark.brand-logo, img.rg-logo-mark.brand-logo { width: 46px; height: 46px; border-radius: 12px; }
img.adm-brand-mark.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
img.pr-logo-mark.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.navbar-brand img.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
