/* Queue Overlay Styles for INDATEX - Refined & Attractive */

/* Glassy Background Overlay */
.queue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInQueue 0.5s ease-out;
}

@keyframes fadeInQueue {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Main Content Card */
.queue-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow:
        0 20px 50px rgba(0, 166, 81, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(230, 245, 235, 1);
    animation: slideUpQueue 0.5s ease-out;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@keyframes slideUpQueue {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Section */
.queue-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f7f4;
    text-align: left;
}

.queue-icon {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.queue-icon i {
    font-size: 1.8rem;
    color: #00A651;
    animation: hourGlassSpin 3s infinite ease-in-out;
}

.queue-icon.success i {
    animation: none;
}

@keyframes hourGlassSpin {

    0%,
    100% {
        transform: rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: rotate(180deg);
        opacity: 0.8;
    }
}

.queue-icon.pulse-active i {
    animation: signalPulse 2s infinite ease-in-out;
}

@keyframes signalPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.queue-info {
    flex-grow: 1;
}

.queue-title {
    color: #004d38;
    margin: 0 0 5px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.queue-message {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.queue-message.queue-highlight {
    color: #00A651;
    font-weight: 700;
    font-size: 1.1rem;
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Body Section */
.queue-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Status Card */
.queue-status-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.status-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.queue-position-value {
    color: #00A651;
}

/* Facts Container */
.queue-facts-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    border: 1px dashed #86efac;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fact-icon {
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 800;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.queue-fact {
    color: #166534;
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.5s ease-in-out;
}

/* Footer Section */
.queue-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.queue-progress-bar {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.queue-progress-fill {
    background: linear-gradient(90deg, #00A651, #34d399);
    height: 100%;
    border-radius: 3px;
    width: 15%;
    animation: progressIndeterminate 2s infinite ease-in-out;
}

@keyframes progressIndeterminate {
    0% {
        width: 5%;
        transform: translateX(-10%);
    }

    50% {
        width: 80%;
        transform: translateX(20%);
    }

    100% {
        width: 5%;
        transform: translateX(100%);
    }
}

.queue-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.queue-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 166, 81, 0.2);
    border-top-color: #00A651;
    border-radius: 50%;
    animation: spinQueue 1s linear infinite;
}

@keyframes spinQueue {
    to {
        transform: rotate(360deg);
    }
}

/* Ready State - Modern Redesign */
.queue-overlay.queue-ready .queue-content {
    border-color: #00A651;
    box-shadow: 0 30px 80px rgba(0, 166, 81, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    overflow: hidden;
    position: relative;
}

.success-icon-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.2);
}

.success-icon-container i {
    font-size: 3rem;
    color: #00A651;
    animation: successCheck 0.5s ease-out 0.3s backwards;
}

.confirmation-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #15803d;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #86efac;
    margin-bottom: 20px;
}

.ready-title {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.ready-message {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.highlight-time {
    color: #00A651;
    font-weight: 700;
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

/* Scanning Loader */
.scanning-loader {
    height: 6px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #00A651, transparent);
    animation: scanMove 1.5s infinite linear;
    border-radius: 3px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successCheck {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scanMove {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}