﻿body {
    background: #f5f7fb;
}

.app-wrapper {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #2d3b6c;
    color: #fff;
    position: fixed;
}

.logo {
    padding: 20px;
    font-weight: bold;
    font-size: 20px;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu-title {
    padding: 10px 20px;
    font-size: 12px;
    opacity: 0.6;
}

.menu-item a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
}

    .menu-item.active,
    .menu-item a:hover {
        background: #44508a;
    }

/* Main */
.main-area {
    margin-left: 250px;
    width: 100%;
}

/* Topbar */
.topbar {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
}

.search {
    padding: 6px 10px;
    border: 1px solid #ccc;
}

.icon-btn {
    border: none;
    background: none;
    margin-right: 10px;
}

.avatar {
    border-radius: 50%;
}

/* Content */
.content-area {
    padding: 20px;
}

/* KPI */
.kpi {
    padding: 15px;
    border-radius: 10px;
}

/* Badge */
.badge-dot {
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}
/* Collapse Sidebar */
.sidebar-collapsed .sidebar {
    width: 80px;
}

    .sidebar-collapsed .sidebar .menu-item span,
    .sidebar-collapsed .sidebar .menu-title {
        display: none;
    }

.sidebar-collapsed .main-area {
    margin-left: 80px;
}

.search-box {
    position: relative;
}

    .search-box input {
        padding: 6px 10px 6px 30px;
        border-radius: 20px;
        border: 1px solid #ddd;
    }

    .search-box i {
        position: absolute;
        left: 10px;
        top: 8px;
        color: gray;
    }

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 35px;
    height: 35px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info .name {
    font-weight: bold;
}

.user-info .role {
    font-size: 12px;
    color: gray;
}









    .dashboard-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,.08);
    }

.stat-title {
    font-size: 15px;
    color: #5f6b7a;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #162033;
}

.quick-panel-card {
    border-radius: 14px;
}

.dvla-table td,
.dvla-table th {
    vertical-align: middle;
}

/*
    Status chip classes
*/

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .status-chip.valid {
        background: #eaf8ef;
        color: #1f8f46;
    }

    .status-chip.invalid {
        background: #fdecec;
        color: #c0392b;
    }

    .status-chip.cached {
        background: #eaf1ff;
        color: #315efb;
    }

    .status-chip.pending {
        background: #fff5dd;
        color: #b7791f;
    }

    .status-chip.unpaid {
        background: #fff5dd;
        color: #b7791f;
    }

    .status-chip.invoiced {
        background: #eaf1ff;
        color: #315efb;
    }

    .status-chip.paid {
        background: #eaf8ef;
        color: #1f8f46;
    }

    .status-chip.live-call {
        background: #eef4ff;
        color: #2f5bea;
    }

    .status-chip.cached-call {
        background: #e9faf6;
        color: #0f8b72;
    }
/*
    KPI card styling

*/


.metric-card {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 8px;
    color: #111827;
}

.metric-note {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/*
    Data grid polish
*/
.modern-table thead th {
    border-top: 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    font-weight: 700;
    background: #fafbfc;
}

.modern-table tbody td {
    vertical-align: middle;
    padding-top: 14px;
    padding-bottom: 14px;
    border-color: #f3f5f7;
}

.primary-cell {
    font-weight: 600;
    color: #1f2937;
}

.muted-cell {
    color: #6b7280;
}