/* Access Control Wait Screen Styles */

.wait-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto;
}

[data-theme="dark"] .wait-screen {
    background: linear-gradient(135deg, #1a1d29 0%, #2a2d42 100%);
}

.wait-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

[data-theme="dark"] .wait-container {
    background: rgba(42, 45, 66, 0.95);
    color: #e8e9ed;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wait-logo h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .wait-logo h1 {
    color: #4d9fff;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.wait-message h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

[data-theme="dark"] .wait-message h2 {
    color: #e8e9ed;
}

.wait-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

[data-theme="dark"] .wait-message p {
    color: #a8aab5;
}

/* Countdown Display */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.countdown-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .countdown-box {
    background: linear-gradient(135deg, #4d9fff 0%, #6610f2 100%);
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

[data-theme="dark"] .countdown-separator {
    color: #4d9fff;
}

/* Progress Bar */
.wait-progress {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .progress-bar {
    background: #3a3d52;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .progress-fill {
    background: linear-gradient(90deg, #4d9fff 0%, #6610f2 100%);
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

[data-theme="dark"] .progress-text {
    color: #a8aab5;
}

/* Wait Info */
.wait-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

[data-theme="dark"] .wait-info {
    background: rgba(77, 159, 255, 0.1);
    border-left-color: #4d9fff;
}

.wait-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

[data-theme="dark"] .wait-info p {
    color: #a8aab5;
}

.btn-reload {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .btn-reload {
    background: linear-gradient(135deg, #4d9fff 0%, #6610f2 100%);
}

.btn-reload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-reload:active {
    transform: translateY(0);
}

/* Wait Footer */
.wait-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .wait-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.wait-footer p {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

[data-theme="dark"] .wait-footer p {
    color: #8a8c9a;
}

/* Access Granted Screen */
.access-granted {
    padding: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.access-granted h2 {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 1rem;
}

[data-theme="dark"] .access-granted h2 {
    color: #20c997;
}

.access-granted p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .access-granted p {
    color: #a8aab5;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 1rem auto;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

[data-theme="dark"] .loading-spinner {
    border-color: rgba(77, 159, 255, 0.2);
    border-top-color: #4d9fff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wait-container {
        padding: 2rem 1.5rem;
    }

    .wait-logo h1 {
        font-size: 1.5rem;
    }

    .wait-message h2 {
        font-size: 1.5rem;
    }

    .countdown-box {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .countdown-separator {
        font-size: 2.5rem;
    }

    .countdown-display {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-box {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }
}
