:root {
    --cdn-accent: #2563eb;
    --cdn-accent-2: #0ea5e9;
    --cdn-dark: #0f172a;
}

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar-vertical {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-right: 1px solid rgba(255,255,255,.06);
}
.navbar-vertical .navbar-brand {
    padding: 1rem 1.5rem;
    margin-bottom: .5rem;
}
.brand-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.navbar-vertical .nav-link {
    color: rgba(255,255,255,.7);
    padding: .65rem 1rem;
    border-radius: .5rem;
    margin: 2px 8px;
    transition: all .15s ease;
}
.navbar-vertical .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.navbar-vertical .nav-link.active {
    color: #fff;
    background: var(--cdn-accent);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.navbar-vertical .nav-link-icon {
    margin-right: .5rem;
}

.stat-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .75rem;
}
.stat-label {
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
}
.card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
}
.card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}
.card-table thead th {
    color: #64748b;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #f1f5f9;
}
.card-table tbody tr {
    transition: background .12s ease;
}
.card-table tbody tr:hover {
    background: #f8fafc;
}

.page-title {
    font-weight: 700;
    color: #0f172a;
}
.page-pretitle {
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .7rem;
}

.dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 12px;
}
.dropzone:hover,
.dropzone.dragover {
    border-color: var(--cdn-accent);
    background: #eff6ff;
}
.dropzone.dragover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(37,99,235,.15);
}

.upload-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    border-radius: 8px;
    background: #f1f5f9;
    margin-bottom: .5rem;
}
.upload-item .progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
}
.upload-item .ti { font-size: 1.25rem; }

.toast.app-toast {
    min-width: 320px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.toast.app-toast .toast-body {
    padding: .75rem 1rem;
}

.badge { font-weight: 600; }

.btn-primary {
    background: var(--cdn-accent);
    border-color: var(--cdn-accent);
}
.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.login-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
}
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.brand-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--cdn-accent), var(--cdn-accent-2));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem;
    margin: 0 auto 1rem;
}
.login-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .25rem;
}
.login-brand p {
    color: #64748b;
    margin: 0;
}
.form-field { margin-bottom: 1.25rem; }
.form-field .form-control:focus,
.login-card .form-control:focus {
    border-color: var(--cdn-accent);
    box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}
.form-check-wrap {
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .navbar-vertical {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1030;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .3s ease;
    }
    .navbar-vertical.show {
        transform: translateX(0);
    }
}
