.thead__colmy{
    font-size: .85rem;
}

:root {
    --sidebar-width: 262px;
    --sidebar-bg: #111827;
    --sidebar-bg-2: #1f2937;
    --accent-1: #3b82f6;
    --accent-2: #6366f1;
}

body {
    background: #f4f6fb;
    color: #1f2937;
}

/* ───────────────────────── Layout ───────────────────────── */
.app {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
    border-right: 1px solid rgba(255, 255, 255, .06);
    z-index: 1040;
    transition: transform .25s ease;
}

.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
}

/* ───────────────────────── Sidebar brand ───────────────────────── */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand img {
    height: 44px;
    width: auto;
}

.sidebar-close {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1;
    padding: .35rem .45rem;
    border-radius: .5rem;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* ───────────────────────── Sidebar menu ───────────────────────── */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem .75rem;
    overflow-y: auto;
}

.sidebar-label {
    display: block;
    padding: .25rem .9rem .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .72rem .9rem;
    border-radius: .65rem;
    color: #cbd5e1;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.sidebar-nav a i {
    font-size: 1.15rem;
    width: 1.4rem;
    text-align: center;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, #ff7200, #ff7d15);
    color: #fff;
    box-shadow: 0 6px 16px rgb(246 141 59 / 13%);
}

/* ───────────────────────── Sidebar footer ───────────────────────── */
.sidebar-footer {
    padding: .9rem .75rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    border-radius: .65rem;
    color: #94a3b8;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sidebar-footer a:hover {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}

/* ───────────────────────── Mobile topbar ───────────────────────── */
.app-topbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1030;
}

.topbar-toggle {
    border: 0;
    background: #eef2ff;
    color: var(--accent-2);
    font-size: 1.35rem;
    line-height: 1;
    padding: .35rem .65rem;
    border-radius: .6rem;
}

.topbar-title {
    font-weight: 700;
    letter-spacing: .02em;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 1035;
}

.sidebar-backdrop.show {
    display: block;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }
}

/* ───────────────────────── Login page ───────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(circle at 20% 20%, #1e3a8a 0, transparent 45%),
                radial-gradient(circle at 80% 80%, #4338ca 0, transparent 45%),
                #0f172a;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--sidebar-bg), var(--sidebar-bg-2));
}

.login-logo {
    height: 52px;
    width: auto;
}

.login-body {
    padding: 2rem;
}

/* ───────────────────────── Content polish ───────────────────────── */
.app-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.app-content .card,
.app-content .modal-content {
    border: 0;
    border-radius: .9rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

/* ───────────────────────── Stat cards ───────────────────────── */
.stat-card .card-body {
    padding: 1.15rem 1.25rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: .8rem;
    font-size: 1.4rem;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.stat-label {
    margin-top: .15rem;
    font-size: .82rem;
    color: #64748b;
}
