/* Alert animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Smart Trailing Active Animation - Border Pulse (1초 주기, 굵은 테두리) */
@keyframes trailingBorderPulse {
    0%, 100% {
        border: 12px solid rgba(255, 193, 7, 0.7);
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8),
                    0 0 60px rgba(255, 193, 7, 0.5),
                    0 0 90px rgba(255, 193, 7, 0.3),
                    inset 0 0 30px rgba(255, 193, 7, 0.15);
        transform: scale(1);
    }
    50% {
        border: 12px solid rgba(255, 193, 7, 1);
        box-shadow: 0 0 40px rgba(255, 193, 7, 1),
                    0 0 80px rgba(255, 193, 7, 0.7),
                    0 0 120px rgba(255, 193, 7, 0.4),
                    inset 0 0 40px rgba(255, 193, 7, 0.25);
        transform: scale(1.005);
    }
}

/* Apply animation to trailing active card */
#trailing-status-card.trailing-active {
    animation: trailingBorderPulse 1s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}

/* 트레일링 비활성 상태의 기본 테두리 */
#trailing-status-card {
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease-in-out;
}

/* Smooth transitions for alerts */
.alert {
    transition: all 0.3s ease-in-out;
}

/* Alert container improvements */
#alert-container {
    max-width: 450px;
    pointer-events: none;
    z-index: 9999;
}

#alert-container .alert {
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    padding: 12px 16px;
}

/* Stack alerts nicely */
#alert-container .alert:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Better alert styling with improved visibility */
.alert-success {
    background-color: rgba(25, 135, 84, 0.95) !important;
    border: 2px solid #198754 !important;
    color: #ffffff !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.95) !important;
    border: 2px solid #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.95) !important;
    border: 2px solid #ffc107 !important;
    color: #000000 !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.95) !important;
    border: 2px solid #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Trailer runner 제거 - 사용하지 않음 */