body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
}

#auth-container {
    text-align: right;
    margin-bottom: 20px;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #2980b9;
}

#logout-button {
    background-color: #e74c3c;
}
#logout-button:hover {
    background-color: #c0392b;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

select {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #ecf0f1;
}

tr:hover {
    background-color: #f9f9f9;
}

.hidden {
    display: none !important;
}

#loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Tab Styles --- */
.tabs {
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tabs button {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* Align with container border */
    color: #555; /* NEW: Sets a default dark gray for inactive tabs */
}

.tabs button.active {
    font-weight: bold;
    color: #3498db; /* This remains the same for the active tab */
    border-bottom: 2px solid #3498db;
    background-color: #e9f3f6;
}

.tabs button:not(.active):hover {
    background-color: #f9f9f9;
}
/* --- Filter Button Styles --- */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: #ecf0f1;
    color: #333;
    border: 1px solid #bdc3c7;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* --- Summary Card Styles --- */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.card span {
    font-size: 2.5em;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.card p {
    margin: 5px 0 0;
    color: #7f8c8d;
    font-size: 14px;
}