body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Bootstraps .text-muted är en mörkgrå avsedd för ljusa bakgrunder - nästan
   osynlig mot vårt mörka tema. Appen är alltid mörk, så vi ersätter den. */
.text-muted {
    color: #94a3b8 !important;
}

.dropdown-menu {
    background-color: #1e293b;
    border: 1px solid #334155;
}

.dropdown-item {
    color: #f8fafc;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #334155;
    color: #f8fafc;
}

.app-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.login-wrap {
    min-height: 80vh;
}

.side-card,
.athlete-card,
.table-custom {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.table-custom {
    overflow: hidden;
}

.athlete-card {
    overflow: hidden;
    padding: 1.5rem;
}

.profile-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.badge-pb,
.badge-sb,
.badge-avg {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
}

.badge-pb {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-sb {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.badge-avg {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.leaderboard-list .list-group-item {
    background-color: transparent;
    border-color: #334155;
    color: #f8fafc;
}

.table-custom th {
    background-color: #0f172a;
    color: #94a3b8;
    border-bottom: 2px solid #334155;
    padding: 0.85rem;
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.series-badge {
    background-color: #334155;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    margin-right: 0.2rem;
    display: inline-block;
}

.series-x {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.btn-refresh {
    background-color: #0ea5e9;
    color: #fff;
    border: none;
}

.btn-refresh:hover {
    background-color: #0284c7;
    color: #fff;
}
