/**
 * Pandini Voyages - Booking Hold Countdown Styles
 */

.booking-countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.booking-countdown.countdown-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse-warning 2s ease-in-out infinite;
}

.booking-countdown.countdown-expired {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    padding: 1.5rem;
}

.countdown-icon {
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.countdown-content {
    flex: 1;
    color: white;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.countdown-time {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.countdown-minutes,
.countdown-seconds {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.countdown-separator {
    font-weight: 400;
    opacity: 0.8;
}

.countdown-actions {
    margin-top: 0.75rem;
}

.countdown-actions .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.countdown-actions .btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.countdown-expired .alert {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.countdown-expired .alert i {
    font-size: 1.5rem;
}

/* Warning animation */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-countdown {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .countdown-time {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .countdown-minutes,
    .countdown-seconds {
        min-width: 45px;
        padding: 0.25rem 0.5rem;
    }
}

/* Sticky countdown at top */
.countdown-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 0 2rem 0;
}

/* Compact version for sidebar */
.booking-countdown.countdown-compact {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.booking-countdown.countdown-compact .countdown-time {
    font-size: 1.25rem;
}

.booking-countdown.countdown-compact .countdown-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .countdown-expired {
        background: #2d1f21;
        border-color: #5a3a3d;
    }
    
    .countdown-expired .alert {
        background: transparent;
        border: none;
        color: #f8d7da;
    }
}

