* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #005a32 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--light-green);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Queue Display Section */
.queue-display-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
}

.queue-column {
    margin-bottom: 2rem;
    position: relative;
}

.queue-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 116, 63, 0.08);
    position: relative;
    height: 100%;
}

.queue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

.queue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.queue-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #005a32 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.queue-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary-green);
}

.queue-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.queue-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.queue-body {
    padding: 2rem 1.5rem;
    min-height: 300px;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-number {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--accent-green) 100%);
    color: var(--primary-green);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid rgba(0, 116, 63, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.queue-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.queue-number:hover::before {
    left: 100%;
}

.queue-number.current {
    background: linear-gradient(135deg, var(--primary-green) 0%, #005a32 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-medium);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 8px 25px var(--shadow-medium);
    }

    to {
        box-shadow: 0 12px 35px rgba(0, 116, 63, 0.4);
    }
}

.no-queue {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-style: italic;
}

.no-queue-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animations */
.fade-out {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
    transition: all 0.5s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: slideIn 0.5s forwards ease;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-section {
        padding: 1.5rem 0;
    }

    .queue-display-section {
        padding: 2rem 0;
    }

    .queue-body {
        min-height: 250px;
        padding: 1.5rem 1rem;
    }

    .queue-number {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }
}

/* Auto-refresh indicator */
.refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 116, 63, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-icon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}