/* Styles for LUMI Dashboard */

.dashboard-container {
    padding: 20px;
}

.dashboard-container h1 {
    margin-bottom: 20px;
}

/* Project Info Section */
.project-info {
    margin-bottom: 20px;
}

.project-info .info-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.project-info-item {
    margin-bottom: 8px;
}

.project-info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
}

#project-select {
    padding: 2px 5px;
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    font-size: 14px;
    min-width: 150px;
}

.stats-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    flex: 1; /* Distribute space equally */
    min-width: 200px; /* Minimum width before wrapping */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.stat-card p {
    font-size: 2em;
    font-weight: bold;
    color: #007bff; /* Primary blue color */
    margin: 10px 0 0 0;
}

.charts-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow charts to wrap */
}

.chart-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    flex: 1; /* Each chart card can grow */
    min-width: 300px; /* Minimum width for chart cards */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#chart1-placeholder, #chart2-placeholder {
    min-height: 200px; 
    display: flex;
    flex-direction: column; 
    color: #aaa;
    /* border: 1px dashed #ddd; */ /* Keep border for chart1, remove for chart2 as Chart.js will fill it */
    border-radius: 4px;
    padding: 10px; 
}

/* Specific styling for chart1 (STIRDEEPER bar chart) placeholder if needed */
#chart1-placeholder {
    border: 1px dashed #ddd; /* Keep border for bar chart placeholder */
}

/* Specific styling for chart2 (Horizon pie chart) placeholder */
#chart2-placeholder {
    min-height: 200px; 
    max-height: 350px; 
    width: 100%; 
    max-width: 400px;  
    margin: 0 auto; /* Center the placeholder block itself */
    border: none;      
    display: flex; /* Use flexbox to center canvas/legend */
    flex-direction: column; /* Default, but can be row if legend is side-by-side internally */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

.chart-loading,
.chart-error {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.chart-subtitle {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
    margin-left: 10px;
}

/* STIRDEEPER Bar Chart Styles */
.stirdeeper-bar-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between bars */
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and bar wrapper */
}

.bar-label {
    flex-basis: 150px; /* Fixed width for labels */
    flex-shrink: 0;
    font-size: 0.9em;
    text-align: right;
    color: #333;
    white-space: nowrap;
}

.bar-wrapper {
    flex-grow: 1;
    background-color: #e9ecef; /* Light grey background for the track */
    border-radius: 4px;
    height: 20px; /* Height of the bar track */
}

.bar {
    background-color: #007bff; /* Blue color for bars */
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
    text-align: right;
    padding-right: 5px;
    color: white;
    font-size: 0.8em;
    line-height: 20px; /* Vertically center text in bar if needed */
} 