body {
    background: #f5f7fb;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid #e6e9f0;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background-color: #0d6efd;
}

:root {
    color-scheme: light;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --canvas: #f7f2f2;
    --accent: #b10f1a;
    --accent-dark: #8f0b14;
    --accent-soft: rgba(177, 15, 26, 0.14);
    --accent-gold: #d6a419;
    --sidebar: #3a0b0f;
    --sidebar-accent: #5b1219;
}

body {
    background: radial-gradient(1100px 420px at 10% -10%, rgba(177, 15, 26, .14), transparent),
        radial-gradient(900px 320px at 90% 0%, rgba(214, 164, 25, .12), transparent),
        var(--canvas);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px !important;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-main {
    flex: 1;
    display: flex;
    gap: 0;
}

.sidebar {
    width: 200px;
    background: linear-gradient(180deg, var(--sidebar), #2a0a0d 60%, #22080b);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(214, 164, 25, .28), transparent 70%);
    pointer-events: none;
}

.sidebar a {
    color: #cbd5f5;
    text-decoration: none;
}

.sidebar a:hover {
    color: #fff;
}

.sidebar .brand {
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 12px;
    color: #94a3b8;
}

.sidebar .nav-link {
    border-radius: 12px;
    padding: 10px 14px;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link.active {
    background: var(--accent-soft);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(177, 15, 26, .45);
    transform: translateX(6px);
}

.sidebar .nav-link:hover {
    background: rgba(148, 163, 184, .12);
    transform: translateX(6px);
}

.sidebar .nav-link .menu-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

.sidebar .nav-link:hover .menu-icon,
.sidebar .nav-link.active .menu-icon {
    transform: scale(1.1);
}

.content-area {
    flex: 1;
    padding: 28px;
}

.page-card {
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .12);
    border: 1px solid rgba(148, 163, 184, .2);
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.badge-status {
    font-size: 12px;
}

.admin-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
}

.admin-footer {
    background: rgba(255, 255, 255, .9);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.files-header {
    background: #f8fafc;
}

.files-divider {
    height: 3px;
    background: #8f0b14;
}

.files-filters {
    background: #ffffff;
}

.files-table th,
.files-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.files-table th {
    white-space: nowrap;
}

.files-table .text-wrap {
    white-space: normal;
}

.files-table .text-nowrap {
    white-space: nowrap;
}

.files-search {
    /* min-width: 220px; */
}

.file-info-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.file-info-header {
    padding: 12px 16px;
    border-bottom: 2px solid #8f0b14;
    background: #f8fafc;
}
.file-info-body {
    padding: 18px 20px;
}
.info-label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.info-value {
    color: #475569;
}
.content-box {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    min-height: 96px;
}

.timeline {
    position: relative;
    margin-left: 8px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(148, 163, 184, 0.6);
}
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 18px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 1px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}
.timeline-content {
    background: #fff;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 12px;
    padding: 12px 14px;
}

.files-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}
.files-loading.is-visible {
    display: flex;
}
.files-loading-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 18px 22px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.btn-info {
    background: #19b5e5;
    border-color: #19b5e5;
}

.btn-info:hover {
    background: #0fa3d3;
    border-color: #0fa3d3;
}

.btn-danger {
    background: #8f0b14;
    border-color: #8f0b14;
}

.btn-danger:hover {
    background: #7a0a12;
    border-color: #7a0a12;
}

@media (max-width: 992px) {
    .admin-main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-area {
        padding: 20px;
    }
}
