/* Dashboard Container */
.dashboard-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f7fa;
}

.dashboard-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e9f0;
    font-size: 28px;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Filter Controls */
.filter-controls-container {
    margin-bottom: 20px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.control-group {
    flex: 1;
    min-width: 250px;
}

.control-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.date-range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-dropdown {
    flex: 1;
}

.date-separator {
    color: #4a5568;
    font-weight: 500;
}

.period-dropdown {
    width: 100%;
}

.cohort-info {
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
}

/* Metrics Cards */
.metrics-container {
    margin-bottom: 20px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.metric-title {
    color: #4a5568;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-value {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-subtitle {
    color: #718096;
    font-size: 12px;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    min-height: 400px;
}

.chart-title {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.chart {
    height: 350px;
}

/* Table Section */
.table-section {
    margin-bottom: 20px;
}

.table-title {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

.download-button {
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #2c5282;
}

.download-button:active {
    background-color: #1a365d; /* Darker shade to show it's pressed */
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(128, 0, 128, 0.1); /* Light purple border */
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 5px rgba(128, 0, 128, 0.3);
    border-color: rgba(128, 0, 128, 0.3); /* Slightly darker border on hover */
    transform: translateY(-2px);
}