.queue-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 260px;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    font-family: sans-serif;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.queue-widget.hide {
    transform: translate(300px, -50%);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e7eb;
}

.queue-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
    flex: 1;
    line-height: 1.2;
}

.queue-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
    width: 0px;
}

.queue-toggle:hover {
    color: #dc2626;
}

.queue-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    padding: 0.5rem 0.75rem;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #166534;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.queue-label {
    font-size: 0.9rem;
    color: #065f46;
}

.queue-number {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Tombol Show dengan Arrow dan Efek Wave */
.queue-show {
    z-index: 4;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    right: 0;
    background: #166534;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: none;
    text-align: center;
    font-size: 0.9rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.queue-show .arrow {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.queue-show .label {
    font-size: 0.85rem;
}

/* Wave animasi berturut-turut */
.queue-show .wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px 0 0 12px;
    pointer-events: none;
    opacity: 0;
    animation: waveEffect 2s infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 0.5s; }
.wave3 { animation-delay: 1s; }

@keyframes waveEffect {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Glow saat wave aktif */
.queue-show.glow {
    box-shadow: 0 0 20px rgba(22, 101, 52, 0.8);
}

.queue-show:hover {
    background: #14532d;
}
