body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    padding: 20px;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.card-body {
    padding: 1.5rem;
}

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

#results {
    min-height: 200px;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table td {
    vertical-align: middle;
}

.rank-1 {
    background-color: rgba(255, 215, 0, 0.1);
}

.rank-2 {
    background-color: rgba(192, 192, 192, 0.1);
}

.rank-3 {
    background-color: rgba(205, 127, 50, 0.1);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.alert {
    border-radius: 8px;
    border: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.heatmap-container {
    padding: 20px;
    background: #f1f1f1;
    border-radius: 8px;
}

.heatmap-legend {
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.heatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-month-labels {
    display: flex;
    margin-left: 40px;
    margin-bottom: 4px;
}

.month-label {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 40px;
}

.heatmap-day-labels {
    display: flex;
    flex-direction: column;
    width: 40px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.day-label {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.heatmap-grid-container {
    display: flex;
    gap: 4px;
    margin-left: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.heatmap-month-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-cell {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.heatmap-cell:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Custom tooltip styles */
.heatmap-cell[title] {
    position: relative;
}

.heatmap-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-line;
    z-index: 3;
    pointer-events: none;
    margin-bottom: 8px;
}

/* Year selector styles */
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #2c3e50;
    background-color: #fff;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
} 