/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff, #fff0db);
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ffffff, #fff8f0);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.header .menu-icons {
    display: flex;
    gap: 20px;
}

.header .menu-icons a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
}

.header .menu-icons a:hover {
    color: #e9967a;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    overflow-y: auto;
}

/* KPI Cards */
.kpi-cards {
    grid-column: span 3;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.kpi-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.kpi-card i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #e9967a;
}

.kpi-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.kpi-card p {
    font-size: 18px;
    font-weight: bold;
    color: #e9967a;
}

/* Slicers */
.slicer-container {
    grid-column: span 3;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 50px; /* Reduced height */
}

.slicer-container select {
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
                inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.slicer-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

/* Charts */
.charts {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 charts per row */
    gap: 20px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

canvas {
    max-height: 250px;
}

/* Additional Row for New Visualizations */
.additional-charts {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 charts per row */
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kpi-cards {
        flex-direction: column;
    }

    .slicer-container {
        flex-direction: column;
        gap: 10px;
    }

    .charts, .additional-charts {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
}