/* ========== Apple-Style Design System ========== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-green: #34c759;
    --color-red: #ff3b30;
    --color-orange: #ff9500;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.04);
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Navigation ========== */

.global-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.nav-logo svg {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-username {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-logout {
    font-size: 13px;
    color: var(--color-red);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 980px;
    background: rgba(255, 59, 48, 0.08);
    transition: var(--transition);
}

.nav-logout:hover {
    background: rgba(255, 59, 48, 0.15);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 980px;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
}

/* ========== Main Content ========== */

.main-content {
    min-height: calc(100vh - 52px - 60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 22px 60px;
}

/* ========== Hero Section ========== */

.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 21px;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

/* ========== Stats Cards (Dashboard) ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.stat-red::before {
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
}

.stat-card.stat-green::before {
    background: linear-gradient(90deg, #30d158, var(--color-green));
}

.stat-card.stat-blue::before {
    background: linear-gradient(90deg, #0071e3, #5ac8fa);
}

.stat-card.stat-purple::before {
    background: linear-gradient(90deg, #af52de, #da8fff);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 6px;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat-metric {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    min-width: 32px;
}

.stat-value-inline {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ========== Trend & Ranking ========== */

.stat-trend {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.trend-up { color: var(--color-green); }
.trend-down { color: var(--color-red); }
.trend-flat { color: var(--color-text-secondary); }

.chart-row {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.chart-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.chart-card-wide {
    flex: 2;
}

.chart-card-narrow {
    flex: 1;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ranking-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-top: 32px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.ranking-table td {
    padding: 12px 12px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.rank-num {
    font-weight: 700;
    color: var(--color-text-secondary);
    text-align: center;
}

.rank-top {
    color: var(--color-accent);
}

.rank-name {
    font-weight: 600;
}

.rank-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rank-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.rank-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent), #5ac8fa);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.rank-bar-qty {
    background: linear-gradient(90deg, #34c759, #30d158);
}

.rank-qty-pct {
    color: #34c759;
    font-weight: 500;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: 980px;
    background: rgba(0, 113, 227, 0.08);
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.quick-link-btn:hover {
    background: rgba(0, 113, 227, 0.14);
    transform: scale(1.02);
}

/* ========== Page Header ========== */

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.page-subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ========== Toolbar (Filter + Import) ========== */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.filter-form,
.import-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input-sm {
    padding: 7px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    width: 90px;
    transition: var(--transition);
}

.input-sm:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

select.input-sm {
    width: auto;
    min-width: 80px;
    cursor: pointer;
}

.file-input {
    display: none;
}

.file-name {
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(0, 113, 227, 0.08);
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(0, 113, 227, 0.14);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    border: none;
    border-radius: 980px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
    transition: var(--transition);
}

.btn-download:hover {
    background: linear-gradient(135deg, #2db84e 0%, #28c74e 100%);
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.4);
    transform: translateY(-1px);
}

.btn-download:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(52, 199, 89, 0.3);
}

/* ========== Toolbar Actions ========== */

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== Modal ========== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.modal-open {
    display: flex;
}

.modal-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.form-group .input-sm,
.form-group select.input-sm {
    width: 100%;
    box-sizing: border-box;
}

/* ========== File Drop Zone ========== */

.file-drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-bg);
}

.file-drop-zone:hover,
.file-drop-zone.drop-active {
    border-color: var(--color-accent);
    background: rgba(0, 113, 227, 0.04);
}

.drop-content p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.drop-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.drop-hint {
    font-size: 12px !important;
    color: var(--color-text-tertiary) !important;
}

/* ========== Date Section ========== */

.date-section {
    margin-bottom: 28px;
}

.date-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding: 8px 12px;
    background: #fde8c8;
    text-align: center;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

/* ========== Excel Table ========== */

.excel-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    margin-bottom: 24px;
    border: 1px solid #d2d2d7;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    table-layout: fixed;
}

.excel-table col.col-customer { width: 10%; }
.excel-table col.col-spec     { width: 14%; }
.excel-table col.col-qty      { width: 10%; }
.excel-table col.col-today    { width: 10%; }
.excel-table col.col-price    { width: 10%; }
.excel-table col.col-amount   { width: 12%; }
.excel-table col.col-extra    { width: 9%; }

.excel-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-align: center;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 2px solid #d2d2d7;
    border-right: 1px solid #ebebed;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

.excel-table thead th:last-child {
    border-right: none;
}

.excel-table tbody td {
    font-size: 14px;
    padding: 7px 10px;
    border-bottom: 1px solid #ebebed;
    border-right: 1px solid #ebebed;
    text-align: center;
    color: var(--color-text);
}

.excel-table tbody td:last-child {
    border-right: none;
}

.excel-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-customer {
    text-align: center;
    font-weight: 400;
}

.cell-customer strong {
    font-weight: 700;
    color: #000;
    font-size: 15px;
}

.cell-price {
    color: var(--color-text);
}

.cell-extra {
    font-size: 13px;
    color: var(--color-orange);
    font-weight: 500;
}

.cell-highlight {
    color: var(--color-red) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.cell-actual {
    color: var(--color-green) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.row-summary {
    background: #fafafa;
}

.row-summary td {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-bottom: 2px solid #d2d2d7 !important;
}

/* ========== Summary Table ========== */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -22px;
    padding: 0 22px;
}

.summary-table {
    min-width: 800px;
    font-size: 13px;
    table-layout: auto;
}

.page-wide .container {
    max-width: 95vw;
}

.summary-table .th-time {
    background: #f0f0f2;
    min-width: 50px;
}

.summary-table .th-inbound {
    background: #e8f5e9;
    color: #2e7d32;
}

.summary-table .th-outbound {
    background: #fce4ec;
    color: #c62828;
}

.summary-table .th-in-detail {
    background: #f1f8e9;
    color: #558b2f;
    font-size: 11px;
}

.summary-table .th-out-detail {
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
}

.summary-table .cell-day {
    font-weight: 600;
    background: #fafafa;
    text-align: center;
}

.summary-table .cell-in {
    background: #f9fbe7;
}

.summary-table .cell-in-val {
    font-weight: 600;
    color: #2e7d32;
}

.summary-table .cell-out {
    background: #fff8e1;
}

.summary-table .cell-out-val {
    font-weight: 600;
    color: #c62828;
}

.summary-table .cell-detail {
    font-size: 12px;
    background: #fafff5;
}

.summary-table .cell-detail-out {
    font-size: 12px;
    background: #fffaf0;
}

.summary-table .row-empty td {
    color: #ccc;
}

.summary-table .row-total {
    background: #f0f0f2;
    font-weight: 700;
}

.summary-table .row-total td {
    font-weight: 700;
    font-size: 14px;
    border-top: 2px solid #999;
}

/* ========== Empty State ========== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-secondary);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 4px;
}

.empty-state .hint {
    font-size: 13px;
    color: #aaa;
}

/* ========== Footer ========== */

.global-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}

/* ========== Responsive ========== */

@media (max-width: 734px) {
    /* Nav: 两行布局，第一行logo+退出，第二行链接 */
    .nav-inner {
        padding: 8px 12px 6px;
        height: auto;
        flex-wrap: wrap;
    }
    .nav-logo {
        font-size: 15px;
        order: 1;
    }
    .nav-logo img {
        height: 26px !important;
    }
    .nav-user {
        order: 2;
        gap: 6px;
    }
    .nav-username {
        display: none;
    }
    .nav-logout {
        font-size: 12px;
        padding: 3px 10px;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0;
        padding-top: 4px;
    }
    .nav-link {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* Layout */
    .container {
        padding: 16px 12px 32px;
    }
    .page-header {
        margin-bottom: 12px;
    }
    .page-title {
        font-size: 22px;
    }
    .page-subtitle {
        font-size: 14px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 14px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 14px 16px;
    }
    .stat-value-inline {
        font-size: 18px;
    }

    /* Charts */
    .chart-row {
        flex-direction: column;
    }
    .chart-card-wide,
    .chart-card-narrow {
        flex: none;
    }
    .chart-card {
        padding: 14px;
        margin-bottom: 16px;
    }
    .ranking-card {
        padding: 14px;
        margin-top: 16px;
    }

    /* Ranking table */
    .ranking-table {
        font-size: 12px;
    }
    .ranking-table th,
    .ranking-table td {
        padding: 6px 4px;
    }

    /* Toolbar: 筛选和按钮紧凑排列 */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }
    .filter-form {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr auto 1fr;
        gap: 6px;
        align-items: center;
    }
    .filter-form label {
        font-size: 13px;
        white-space: nowrap;
    }
    .filter-form .input-sm,
    .filter-form select.input-sm {
        width: 100%;
    }
    .filter-form .btn-primary {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .toolbar-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    .toolbar-actions .btn-outline,
    .toolbar-actions .btn-download {
        flex: 1;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
        margin-left: 0;
        padding: 9px 12px;
        font-size: 13px;
    }
    .import-form {
        justify-content: center;
        flex-wrap: wrap;
    }
    .input-sm {
        width: 70px;
    }

    /* Data table */
    .excel-table thead th {
        font-size: 11px;
        padding: 6px 4px;
    }
    .excel-table tbody td {
        font-size: 12px;
        padding: 5px 4px;
    }
    .cell-customer strong {
        font-size: 13px;
    }
    .cell-highlight,
    .cell-actual {
        font-size: 13px !important;
    }

    /* Summary table scroll */
    .table-scroll {
        margin: 0 -12px;
        padding: 0 12px;
    }

    /* Modal */
    .modal-card {
        width: 95vw;
        margin: 0 8px;
    }
    .modal-header {
        padding: 16px 16px 0;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-footer {
        padding: 0 16px 16px;
    }

    /* Footer */
    .global-footer {
        padding: 14px;
        font-size: 11px;
    }
}

/* Toast */
.toast-success, .toast-error {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: toast-in 0.3s ease;
    max-width: 90vw;
    text-align: center;
}
.toast-success { background: var(--color-green); }
.toast-error { background: var(--color-red); }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    position: absolute;
    bottom: 40%;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}