/* =========================
   RESET
========================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* =========================
   HEADER
========================= */

.header {
    background: #111827;
    color: white;
    padding: 28px 50px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.header p {
    color: #9ca3af;
    font-size: 14px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 40px;
}


/* =========================
   SUMMARY CARDS
========================= */

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

.summary-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.summary-card p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.summary-card h2 {
    font-size: 30px;
    color: #111827;
}


/* =========================
   CHART GRID
========================= */

.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}


/* =========================
   CARDS
========================= */

.chart-card,
.employee-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.full-width {
    margin-bottom: 25px;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 5px;
}

.section-heading p {
    color: #6b7280;
    font-size: 13px;
}


/* =========================
   CHARTS
========================= */

.chart-container {
    position: relative;
    height: 330px;
}

.gender-chart {
    display: flex;
    justify-content: center;
}


/* =========================
   FILTERS
========================= */

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
}

.filters input {
    min-width: 250px;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #111827;
}


/* =========================
   TABLE
========================= */

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

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

thead {
    background: #f9fafb;
}

th {
    text-align: left;
    padding: 14px;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

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

tbody tr:hover {
    background: #f9fafb;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1000px) {

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

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


@media (max-width: 600px) {

    .header {
        padding: 22px;
    }

    .dashboard {
        padding: 20px;
    }

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

    .chart-container {
        height: 280px;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }
}
/* =========================
   EMPLOYEE REPORT
========================= */

.salary-range-section {
    margin-bottom: 35px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.salary-range-header {
    padding: 20px 22px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.salary-range-header h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
}

.salary-range-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}


/* Employee table */

.salary-range-section table {
    width: 100%;
    border-collapse: collapse;
}

.salary-range-section th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.salary-range-section td {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    border-bottom: 1px solid #f0f0f0;
}

.salary-range-section tbody tr:last-child td {
    border-bottom: none;
}

.salary-range-section tbody tr:hover {
    background: #f9fafb;
}


/* Space below Employee Report heading */

.employee-section > .section-heading {
    margin-bottom: 25px;
}