/* General Page Styling */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section with Logo and Tagline */
.header {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 20px;
    color: rgb(5, 39, 48);
}

.project-logo {
    max-width: 250px;
    margin-bottom: 10px;
}

.tagline h1 {
    font-size: 36px;
    font-weight: bold;
    color: rgb(5, 39, 48);
}

.tagline p {
    font-size: 18px;
    color: rgb(87, 191, 165);
}

/* KPI Section */
.kpi-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kpi {
    padding: 20px;
    background-color: rgb(240, 248, 245);
    border: 1px solid rgb(87, 191, 165);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.kpi-title {
    font-size: 18px;
    color: rgb(5, 39, 48);
}

.kpi-value {
    font-size: 30px;
    color: rgb(87, 191, 165);
    font-weight: bold;
}

.kpi-description {
    font-size: 14px;
    color: rgb(5, 39, 48);
    margin-top: 10px;
    font-style: italic;
}

/* Recent Products Table */
.recent-products {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recent-products table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.recent-products th,
.recent-products td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.recent-products th {
    background-color: rgb(5, 39, 48);
    color: white;
    font-weight: 600;
}

.recent-products tr:hover {
    background-color: #f1f1f1;
}

/* Map Section */
.map-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* Chart Section */
.chart-wrapper {
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Table Wrapper for Products */
.table-wrapper {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

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

.table-wrapper th, .table-wrapper td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-wrapper th {
    background-color: #2b3a42;
    color: white;
    font-weight: 600;
}

.table-wrapper tr:hover {
    background-color: #f1f1f1;
}

/* Search and Filter Section */
.search-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    background-color: #e8eef1;
    padding: 20px;
    border-radius: 8px;
}

.search-filter input[type="text"],
.search-filter select,
.search-filter button {
    padding: 8px 12px;
    border: 1px solid #4b5d67;
    border-radius: 4px;
}

.search-filter button {
    background-color: #4b5d67;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-filter button:hover {
    background-color: #6b7b83;
}

/* Detail Page Layout */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Map Wrapper */
.map-wrapper {
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Date Picker Styling */
.date-picker {
    background-color: #e8eef1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.date-picker label {
    font-weight: bold;
    margin-top: 10px;
}
