/* Opening Status Component */
.open-status {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin: 1rem 0;
    position: relative;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.85);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-badge i {
    font-size: 1.1em;
}

/* Animation for the door icon */
.status-badge i.fa-door-open {
    animation: doorOpenPulse 2s infinite;
}

.status-badge i.fa-door-closed {
    animation: doorClosedPulse 2s infinite;
}

.status-time {
    font-weight: 600;
}

/* Animation for the countdown/clock */
.status-time-wrapper {
    display: inline-block;
    position: relative;
}

.status-time {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.status-time.flash {
    animation: timeFlash 1s infinite;
}

/* Pulse animations */
@keyframes doorOpenPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1); }
}

@keyframes doorClosedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1); }
}

@keyframes timeFlash {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .open-status {
        margin: 0.75rem 0;
    }
}
