:root {
    --primary: #FF5722;
    --dark-bg: #0f0f13;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.g1 {
    width: 400px;
    height: 400px;
    background: #FF5722;
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate;
}

.g2 {
    width: 300px;
    height: 300px;
    background: #7c4dff;
    bottom: 0;
    right: 0;
    animation: float 8s infinite alternate-reverse;
}

.g3 {
    width: 200px;
    height: 200px;
    background: #00bcd4;
    top: 40%;
    left: 60%;
    animation: float 12s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 50px);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#last-update-date {
    color: var(--primary);
    font-weight: bold;
}

/* Cards & Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard h3 {
    margin: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
}

.big-orange {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.delegation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delegate-badge {
    background: rgba(255, 87, 34, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Search */
.search-section {
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

#user-stats-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    color: var(--primary);
}

/* Tables */
.tab-buttons {
    margin-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: white;
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr:last-child td {
    border-bottom: none;
}

.table-container {
    overflow-x: auto;
}

/* Current Contest Section */
.current-contest-section {
    margin-bottom: 30px;
}

#current-contest-info {
    background: rgba(255, 87, 34, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

#current-contest-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

#current-contest-info .contest-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

#current-contest-info .detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
}

#current-contest-info .detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

#current-contest-info .detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.participant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.participant-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    width: max-content;
}

.participant-item .username {
    font-weight: 600;
}

.participant-item .guess {
    color: var(--primary);
    font-weight: 700;
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}


/* Responsive */
@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}