* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7fb;
    color: #1f2937;
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: 240px;
    background-color: #0f172a;
    color: white;
    padding: 28px 20px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 40px;
}

.logo span {
    color: #3b82f6;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    background: none;
    border: none;
    color: #cbd5e1;
    text-align: left;
    padding: 13px 14px;
    border-radius: 7px;
    font-size: 15px;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #1e293b;
    color: white;
}

.nav-item.active {
    background-color: #2563eb;
    color: white;
}


/* MAIN */

.main-content {
    margin-left: 240px;
    padding: 35px;
    width: calc(100% - 240px);
}


/* TOP BAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 31px;
    margin-bottom: 5px;
}

.topbar p {
    color: #64748b;
}

.primary-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #1d4ed8;
}


/* SUMMARY CARDS */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.summary-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-card h2 {
    font-size: 30px;
    margin-bottom: 5px;
}

.summary-card span {
    color: #94a3b8;
    font-size: 13px;
}

.summary-card.warning {
    border-left: 5px solid #f59e0b;
}


/* PANELS */

.panel {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 21px;
    margin-bottom: 4px;
}

.panel-header p {
    color: #64748b;
    font-size: 14px;
}

.secondary-button {
    border: 1px solid #d1d5db;
    background-color: white;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: #f8fafc;
}


/* TABLE */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: #64748b;
    font-size: 13px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

tbody tr:hover {
    background-color: #f8fafc;
}


/* STATUS */

.status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.warning-status {
    background-color: #fef3c7;
    color: #92400e;
}

.review-status {
    background-color: #dbeafe;
    color: #1e40af;
}

.good-status {
    background-color: #dcfce7;
    color: #166534;
}


/* ALERTS */

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.alert:last-child {
    border-bottom: none;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert p {
    color: #64748b;
    font-size: 14px;
}

.alert span {
    font-size: 13px;
    font-weight: bold;
    color: #dc2626;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }

    body {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}