* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: #4fc3f7;
    margin-bottom: 10px;
}

/* File upload styling */
.file-upload-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    display: inline-block;
}

.file-upload-btn {
    background-color: #4fc3f7;
    color: #121212;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s;
}

.file-upload-btn:hover {
    background-color: #81d4fa;
}

#file-selected {
    display: inline-block;
    margin-left: 10px;
    font-style: italic;
    color: #aaa;
}

#upload-status {
    margin-top: 8px;
    font-size: 0.9rem;
}

.success-message {
    color: #81c784;
}

.error-message {
    color: #e57373;
}

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

.dashboard-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
}

.full-width {
    flex: 1 1 100%;
    width: 100%;
}

.dashboard-card h2 {
    color: #4fc3f7;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.chart-container {
    height: 300px;
    position: relative;
}

.data-table-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    overflow-x: auto;
    max-height: 800px; /* Increased from 600px to show more rows */
    overflow-y: auto; /* Enable vertical scrolling */
}

.data-table-container h2 {
    color: #4fc3f7;
    margin-bottom: 15px;
}

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

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2a2a2a;
    font-weight: 600;
    color: #4fc3f7;
}

tr:hover {
    background-color: #2c2c2c;
}

/* Table footer with pagination */
.table-footer {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.record-count {
    color: #aaa;
    font-style: italic;
    margin-bottom: 10px;
}

.pagination-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin: 15px 0;
}

.pagination-btn {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #3a3a3a;
}

.pagination-btn.active {
    background-color: #4fc3f7;
    color: #121212;
    border-color: #4fc3f7;
}

.pagination-btn:disabled {
    background-color: #1e1e1e;
    color: #555;
    cursor: not-allowed;
    border-color: #333;
}

.pagination-ellipsis {
    color: #e0e0e0;
    padding: 8px 5px;
}

@media (max-width: 768px) {
    .pagination-container {
        justify-content: center;
        width: 100%;
    }
    
    .record-count {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Filter container styling */
.filter-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-container label {
    font-weight: 600;
    color: #4fc3f7;
}

.filter-container select {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    background-color: #2a2a2a;
    color: #e0e0e0;
    cursor: pointer;
}

.filter-container select:focus {
    outline: none;
    box-shadow: 0 0 5px #4fc3f7;
}

/* Stats container styling */
.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.stat-title {
    color: #4fc3f7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-value {
    color: #e0e0e0;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-subtitle {
    color: #aaa;
    font-size: 0.8rem;
    font-style: italic;
}

/* Dashboard controls container */
.dashboard-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Year filter container styling */
.year-filter-container {
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-filter-container label {
    font-weight: 600;
    color: #4fc3f7;
}

.year-filter-container select {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background-color: #1e1e1e;
    color: #e0e0e0;
    cursor: pointer;
    font-weight: 600;
}

.year-filter-container select:focus {
    outline: none;
    box-shadow: 0 0 5px #4fc3f7;
}

@media (max-width: 768px) {
    .dashboard-card {
        flex: 1 1 100%;
    }

    .stats-container {
        flex-direction: column;
    }
}