/* ==========================================================
   TECHBOX ACADEMY — Admin & Dashboard Styles
   Shared across Login, Super Admin, Trainer, Trainee
   ========================================================== */

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #2c3e50;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: #333;
}

/* ── Login Page ── */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 24px;
}

.login-logo svg {
    width: 60px;
    height: 60px;
}

.login-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #333;
}

.login-msg {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--danger);
    display: none;
}

/* ── Dashboard Layout ── */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
}

.sidebar-header img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-header .logo-fallback {
    display: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.sidebar-header img[data-failed="true"] {
    display: none;
}

.sidebar-header img[data-failed="true"] ~ .logo-fallback,
.sidebar-header .logo-fallback.visible {
    display: block;
}

.sidebar-logo svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.user-info {
    flex-grow: 1;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 4px;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: capitalize;
}

.btn-logout {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Main Content Area ── */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: #333;
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* ── Tables ── */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:hover {
    background: #fafafa;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e6f4ea;
    color: #1e8e3e;
}

.status-inactive {
    background: #fce8e6;
    color: #d93025;
}

.status-pending {
    background: #fef7e0;
    color: #f9ab00;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.delete:hover {
    color: var(--danger);
}

/* ── Cards Grid (Dashboard Stats) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ── Modal (Generic) ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3vh 10px;
    overflow-y: auto;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    width: 500px;
    max-height: none;
    border-radius: 8px;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin: auto 0;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

/* Exam modal — wide on desktop, responsive on mobile/tablet */
.modal-box.exam-modal-wide {
    width: 95%;
    max-width: 960px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    cursor: pointer;
    font-size: 1.2rem;
}

/* ── Video Player & Watermark ── */
.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* Moving watermark email */
.watermark-text {
    position: absolute;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.22);
    font-weight: 600;
    user-select: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    animation: wmFloat 18s linear infinite;
    /* Tiny dark stroke so text is visible on white/bright videos */
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.15);
    paint-order: stroke fill;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
}

/* Slow diagonal drift across the video */
@keyframes wmFloat {
    0%   { top: 10%; left: -30%; }
    25%  { top: 40%; left: 30%; }
    50%  { top: 70%; left: 60%; }
    75%  { top: 30%; left: 80%; }
    100% { top: 10%; left: -30%; }
}

/* ── Exam Interface ── */
.exam-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    user-select: none;
    /* Disable selection */
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger);
}

.question-box {
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    background: var(--bg-light);
    border-color: #ccc;
}

.option-item.selected {
    background: #e3f2fd;
    border-color: var(--info);
}

/* ==========================================================
   GLOBAL — Box-sizing for all elements
   ========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Desktop: hide mobile topbar and bottom nav */
.mobile-topbar,
.bottom-nav {
    display: none;
}

/* ==========================================================
   TABLET — App-like experience (max-width: 1024px)
   ========================================================== */
@media (max-width: 1024px) {
    :root {
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ── Layout ── */
    .dashboard-wrapper {
        flex-direction: column;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* ── Sidebar → Drawer ── */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100%;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .dashboard-wrapper.drawer-open .sidebar {
        transform: translateX(0);
    }

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

    .dashboard-wrapper.drawer-open .sidebar-overlay {
        display: block;
    }

    /* ── Mobile Topbar ── */
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        padding-top: calc(12px + var(--safe-top, 0px));
        background: #000;
        color: #fff;
        min-height: 56px;
        flex-shrink: 0;
    }

    .mobile-topbar .menu-btn {
        background: none;
        border: none;
        color: #fff;
        padding: 8px;
        cursor: pointer;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .mobile-topbar .menu-btn i {
        font-size: 24px;
    }

    .mobile-topbar .app-title {
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar .user-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
        background: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: 700;
        flex-shrink: 0;
    }

    /* ── Main Content ── */
    .main-content {
        flex: 1;
        padding: 16px;
        padding-bottom: calc(80px + var(--safe-bottom, 0px));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Bottom Navigation ── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        padding-bottom: var(--safe-bottom, 0px);
        background: #fff;
        border-top: 1px solid var(--border);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        flex-shrink: 0;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        color: #666;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        cursor: pointer;
        border: none;
        background: none;
        transition: color 0.2s;
    }

    .bottom-nav-item i {
        font-size: 22px;
    }

    .bottom-nav-item.active {
        color: #000;
        font-weight: 600;
    }

    .bottom-nav-item.more-btn {
        font-size: 0.65rem;
    }

    /* ── Page Header ── */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .page-header .page-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-header .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .page-title {
        font-size: 1.35rem;
    }

    /* ── Stats Grid ── */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .stat-value {
        font-size: 1.4rem;
        word-break: break-word;
    }

    /* ── Tables ── */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin: 0 -4px;
        padding: 0 4px;
    }

    .data-table {
        min-width: 500px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .data-table td {
        white-space: normal;
        word-break: break-word;
    }

    /* ── Modals — full screen on mobile ── */
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 5vh;
    }

    .modal-box {
        width: 95% !important;
        max-width: 100% !important;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px;
    }

    .modal-box.exam-modal-wide {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Exam questions table: scroll horizontally on mobile */
    #examQuestionsTable {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    /* ── Forms — touch friendly ── */
    .form-input,
    .form-input[type="text"],
    .form-input[type="email"],
    .form-input[type="password"],
    .form-input[type="number"],
    .form-input[type="url"],
    .form-input[type="date"],
    .form-input[type="time"],
    select.form-input,
    textarea.form-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
        width: 100%;
    }

    /* ── Editor tabs ── */
    .editor-tabs {
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
    }

    .editor-tabs .tab-btn {
        flex: 1;
        white-space: nowrap;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* ── Certificate builder ── */
    .cert-builder-layout {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* ── Buttons ── */
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* ── Form groups in flex layouts ── */
    .form-group[style*="display:flex"],
    .form-group[style*="display: flex"],
    div[style*="display:flex; gap:16px"],
    div[style*="display: flex; gap: 16px"] {
        flex-wrap: wrap;
    }

    /* ── Images ── */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ==========================================================
   MOBILE — Phone optimizations (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {
    /* ── Login page mobile ── */
    .login-container {
        padding: 16px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 10vh;
    }

    .login-card {
        padding: 24px 20px;
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .login-card img {
        height: 45px !important;
    }

    .login-header h2 {
        font-size: 1.2rem;
    }

    .login-header p,
    .login-subtitle {
        font-size: 0.82rem;
    }

    .form-input {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }

    .btn-login {
        padding: 14px;
        font-size: 1rem;
    }

    .main-content {
        padding: 12px;
        padding-bottom: calc(80px + var(--safe-bottom, 0px));
    }

    .page-title {
        font-size: 1.15rem;
    }

    /* Single column for stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 14px;
        font-size: 0.82rem;
        width: 100%;
        justify-content: center;
    }

    .page-header .btn {
        width: 100%;
    }

    .page-actions {
        width: 100%;
        flex-direction: column;
    }

    /* Tables — scrollable with visual hint */
    .table-container {
        border-radius: 8px;
        position: relative;
    }

    .data-table {
        min-width: 520px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Modal — nearly full screen */
    .modal-overlay {
        padding: 8px;
        padding-top: 2vh;
        align-items: flex-start;
    }

    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh;
        border-radius: 12px;
        padding: 16px;
    }

    .modal-box.exam-modal-wide {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Select dropdowns in modals — ensure they are visible and tappable on mobile */
    .modal-box select,
    .modal-box select.form-input {
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 12px !important;
        width: 100% !important;
        display: block !important;
        -webkit-appearance: menulist !important;
        appearance: menulist !important;
        background-color: #fff !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }

    /* Flex form rows → stack vertically */
    .form-group[style*="display:flex"],
    div[style*="display:flex; gap:16px"],
    div[style*="display: flex; gap: 16px"] {
        flex-direction: column !important;
    }

    /* Course editor curriculum */
    .module-block .module-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .module-block .module-header input {
        width: 100% !important;
        flex: none !important;
    }

    .module-block .module-header .btn {
        flex: 1;
    }

    .lesson-block > div:first-child {
        flex-wrap: wrap !important;
        gap: 8px;
    }

    .lesson-block .lesson-title {
        width: 100% !important;
    }

    .lesson-block .lesson-type {
        width: 100% !important;
    }

    /* Certificate builder stacked */
    section[id="section-certificate"] > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 16px !important;
    }

    section[id="section-certificate"] > div[style*="display:flex"] > div {
        flex: none !important;
        width: 100% !important;
    }

    /* Certificate preview scale down */
    section[id="section-certificate"] > div > div:last-child {
        padding: 20px !important;
        font-size: 0.75rem;
        overflow-x: auto;
    }

    /* Registrations modal */
    #registrationsModal .modal-box,
    #studentsListModal .modal-box {
        width: 100% !important;
    }

    /* Session form flex rows */
    #sessionModal .form-group[style*="display:flex"],
    #sessionModal div[style*="display:flex; gap:16px"] {
        flex-direction: column !important;
    }

    #sessionModal .form-group[style*="display:flex"] > div,
    #sessionModal div[style*="display:flex; gap:16px"] > div {
        flex: none !important;
        width: 100% !important;
    }

    /* Exam modal flex rows */
    #examModal .form-group[style*="display:flex"] {
        flex-direction: column !important;
    }

    #examModal .form-group[style*="display:flex"] > div {
        flex: none !important;
        width: 100% !important;
    }

    /* Player layout */
    .player-layout {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .player-sidebar {
        height: 300px !important;
    }

    /* Action buttons in tables */
    .action-btn {
        padding: 6px;
    }

    .action-btn i {
        font-size: 18px;
    }
}

/* ==========================================================
   SMALL PHONES (max-width: 400px)
   ========================================================== */
@media (max-width: 400px) {
    .login-container {
        padding: 12px;
        padding-top: 6vh;
    }

    .login-card {
        padding: 20px 16px;
    }

    .login-card img {
        height: 38px !important;
    }

    .main-content {
        padding: 8px;
        padding-bottom: calc(80px + var(--safe-bottom, 0px));
    }

    .mobile-topbar {
        padding: 10px 12px;
    }

    .mobile-topbar .app-title {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.05rem;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .modal-box {
        padding: 14px;
    }

    .bottom-nav-item {
        font-size: 0.6rem;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }
}