/* ================= OVERLAY ================= */
.modal-overlay {
    background: rgba(15, 23, 42, 0.85);
}

/* ================= CARD ================= */
.modal-card {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* ================= HEADER ================= */
.modal-header {
    position: relative;
    padding: 14px;
    text-align: center;
    font-weight: 700;
}

/* Header untuk WhatsApp */
.modal-wa {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
}

/* Header untuk Web */
.modal-web {
    background: linear-gradient(135deg, #facc15, #ca8a04);
    color: #1f2937;
}

.modal-title {
    font-size: 15px;
    letter-spacing: 0.05em;
}

/* Badge */
.modal-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ================= BODY ================= */
.modal-body {
    padding: 18px;
    text-align: center;
}

.modal-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.queue-wrapper {
    margin: 14px 0;
}

.queue-box {
    display: inline-block;
    background: #020617;
    border: 2px solid;
    font-size: 42px;
    font-weight: 900;
    padding: 12px 22px;
    border-radius: 14px;
    letter-spacing: 6px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Warna untuk WhatsApp */
.border-green-500 {
    border-color: #22c55e !important;
}

.text-green-500 {
    color: #22c55e !important;
}

/* Warna untuk Web */
.border-yellow-400 {
    border-color: #facc15 !important;
}

.text-yellow-400 {
    color: #facc15 !important;
}

.modal-time {
    font-size: 11px;
    opacity: 0.75;
    margin-bottom: 14px;
}

/* Info Box */
.modal-info {
    background: #020617;
    padding: 10px;
    font-size: 12px;
    border-radius: 8px;
    border-left: 4px solid;
}

/*  AKSES WHATSAPP - Hijau */
.modal-info.border-green-500 {
    border-left-color: #22c55e !important;
}

/*  AKSES WEB - Kuning */
.modal-info.border-yellow-400 {
    border-left-color: #facc15 !important;
}

/* ================= FOOTER ================= */
.modal-footer {
    background: #020617;
    padding: 14px;
    text-align: center;
}

.modal-footer-text {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 8px;
}

/* ================= BUTTON ================= */
.btn {
    width: 100%;
    height: 44px;           
    padding: 0 14px;        
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Tombol Primary */
.btn-primary {
    border: none;
}

/* Tombol WhatsApp - Hijau */
.btn-primary.bg-green-600 {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
}

.btn-primary.bg-green-600:hover {
    background: linear-gradient(135deg, #15803d, #166534);
}

/* Tombol Web - Kuning */
.btn-primary.bg-yellow-600 {
    background: linear-gradient(135deg, #facc15, #ca8a04);
    color: #1f2937;
}

.btn-primary.bg-yellow-600:hover {
    background: linear-gradient(135deg, #eab308, #a16207);
}

/* Tombol Outline */
.btn-outline {
    background: transparent;
    border: 2px solid;
    color: #e5e7eb;
}

.btn-outline.text-blue-600 {
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline.text-blue-600:hover {
    background: #2563eb;
    color: white;
}

/* ================= ANIMATION ================= */
.animate-scale-in {
    animation: scale-in 0.25s ease-out;
}

@keyframes scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= PRINT (WARNA DIKUNCI) ================= */
@media print {
    body * {
        visibility: hidden;
    }

    .print-area,
    .print-area * {
        visibility: visible;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .modal-overlay {
        background: white !important;
    }

    .modal-card {
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }

    .modal-header {
        background: #f0f0f0 !important;
        color: black !important;
    }

    .queue-box {
        background: #f0f0f0 !important;
        border: 2px solid black !important;
        color: black !important;
    }

    .modal-info {
        background: #f0f0f0 !important;
        border-left: 4px solid black !important;
        color: black !important;
    }

    .modal-footer {
        background: #f0f0f0 !important;
        color: black !important;
    }

    .print-hidden {
        display: none !important;
    }
}