/* Page styles extracted from templates/server_profile.html (loaded after styles.css, same cascade order). */
/* Granularity Toggle Group Styles */
.granularity-toggle-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}
.granularity-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    user-select: none;
}
.granularity-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.granularity-btn.active {
    background: #38bdf8;
    color: #0b1120;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* Tab Navigation Styles */
.graphs-tabs-wrapper {
    margin: 25px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}
.graphs-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -webkit-overflow-scrolling: touch;
}
.graphs-tabs::-webkit-scrollbar {
    height: 5px;
}
.graphs-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.graphs-tab-btn {
    background: #15202e;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}
.graphs-tab-btn:hover {
    background: #1c2a3a;
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}
.graphs-tab-btn.active {
    background: rgba(57, 146, 190, 0.2);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}
.graphs-tab-btn .tab-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.graphs-tab-btn.active .tab-badge {
    background: rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
}
.graphs-tab-pane {
    display: none;
}
.graphs-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.25s ease-out;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Podium Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
}
.rank-badge.rank-1 {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}
.rank-badge.rank-2 {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.5);
}
.rank-badge.rank-3 {
    background: rgba(217, 119, 6, 0.2);
    color: #fb923c;
    border: 1px solid rgba(217, 119, 6, 0.5);
}
.rank-badge.rank-other {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
