﻿/*=========================================================
Dashboard
=========================================================*/

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/*=========================================================
Header
=========================================================*/

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dashboard-header h2 {
        margin: 0;
        font-size: 34px;
        font-weight: 700;
        color: #111827;
        letter-spacing: -.5px;
    }

    .dashboard-header p {
        margin-top: 8px;
        margin-bottom: 0;
        color: #6B7280;
        font-size: 15px;
    }

.dashboard-date {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

/*=========================================================
KPI
=========================================================*/

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.kpi-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E8ECF3;
    border-radius: 18px;
    padding: 24px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 6px 18px rgba(15,23,42,.04);
}

    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 35px rgba(15,23,42,.08);
    }

    /* left accent */

    .kpi-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 20px;
        background: #2563EB;
    }

    .kpi-card:nth-child(2)::before {
        background: #F59E0B;
    }

    .kpi-card:nth-child(3)::before {
        background: #10B981;
    }

    .kpi-card:nth-child(4)::before {
        background: #8B5CF6;
    }

.kpi-title {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kpi-value {
    margin-top: 14px;
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.kpi-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #F8FAFC;
    right: -40px;
    bottom: -45px;
}

/*=========================================================
Dashboard Row
=========================================================*/

.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/*=========================================================
Dashboard Cards
=========================================================*/

.dashboard-card {
    background: #FFFFFF;
    border: 1px solid #E7ECF3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    transition: .25s;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(15,23,42,.08);
    }

    /*=========================================================
Card Header
=========================================================*/

    .dashboard-card h5 {
        margin: 0;
        padding: 22px 24px;
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        border-bottom: 1px solid #EEF2F7;
        background: #FCFCFD;
    }

/*=========================================================
Table
=========================================================*/

.dashboard-table {
    margin: 0;
}

    .dashboard-table thead {
        background: #F8FAFC;
    }

    .dashboard-table th {
        border: none;
        padding: 16px 22px;
        font-size: 13px;
        font-weight: 700;
        color: #6B7280;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .dashboard-table td {
        border-top: 1px solid #F1F5F9;
        padding: 18px 22px;
        vertical-align: middle;
        font-size: 14px;
        color: #374151;
    }

    .dashboard-table tbody tr {
        transition: .2s;
    }

        .dashboard-table tbody tr:hover {
            background: #F8FBFF;
        }

/*=========================================================
Status Badges
=========================================================*/

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

    .status.inspection {
        background: #FEF3C7;
        color: #B45309;
    }

    .status.repair {
        background: #DCFCE7;
        color: #166534;
    }

    .status.dispatch {
        background: #DBEAFE;
        color: #1D4ED8;
    }

    .status.pending {
        background: #F3F4F6;
        color: #4B5563;
    }

/*=========================================================
Chart Area
=========================================================*/

.chart-placeholder {
    margin: 24px;
    height: 310px;
    border: 2px dashed #D6DFEA;
    border-radius: 16px;
    background: #FBFCFE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 15px;
    font-weight: 600;
    transition: .25s;
}

    .chart-placeholder:hover {
        border-color: #2563EB;
        background: #F8FBFF;
    }

#repairStatusChart {
    width: 100% !important;
    height: 320px !important;
}