body {
    font-family: Arial, sans-serif;
    background: #f5f6f7;
    margin: 40px;
}

h1, h2 {
    margin-bottom: 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background: #f0f0f0;
    text-align: left;
}

.error {
    color: red;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ================================
   Alerts
   ================================ */

.alert {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid transparent;
}

/* Success */
.alert-success {
    background-color: #e6f4ea;
    border-color: #b7dfc2;
    color: #1e6b3a;
}

/* Error */
.alert-error {
    background-color: #fdecea;
    border-color: #f5c6c3;
    color: #8a1f17;
}

/* Optional icon spacing if you add icons later */
.alert strong {
    font-weight: 600;
}

/* Optional close button support */
.alert .close {
    float: right;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.date-filter {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.date-filter label {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.date-filter button {
    padding: 6px 12px;
    cursor: pointer;
}

.date-presets {
    margin-bottom: 12px;
}

.date-filter-label {
    margin: 8px 0 16px;
    font-size: 14px;
    color: #444;
}

.preset-btn {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    border-radius: 4px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.preset-btn:hover {
    background: #e0e0e0;
}

.preset-btn.active {
    background: #333;
    color: #fff;
}

.main-nav a {
    margin-right: 12px;
    text-decoration: none;
}

.main-nav a:hover {
    text-decoration: underline;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

table.leaderboard td.num {
    text-align: right;
}

table.leaderboard td.strong {
    font-weight: 600;
}

table.leaderboard tbody tr:hover {
    background: #f7f9fb;
}

.env-banner {
    background: #c00000;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 0;
    font-size: 14px;
    text-transform: uppercase;
}

/* Container */
.dashboard-tabs {
    display: flex;
    gap: 6px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e5e5;
}

/* Base tab button */
.tab-btn {
    display: inline-block;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #555;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}

/* Hover effect */
.tab-btn:hover {
    background: #e8e8e8;
    color: #222;
}

/* Active tab */
.tab-btn.active {
    background: white;
    color: #000;
    border: 1px solid #ddd;
    border-bottom: 2px solid white;
    position: relative;
    top: 2px;
}
