/* modal.css - Modal dialog styles */
/* Modal overlays, content cards, inputs, and buttons for various dialogs */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6), 
                0 8px 24px rgba(204, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.5), transparent);
    animation: modalShimmer 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 16px;
    outline: none;
    transition: all 0.2s;
}

.modal-input:focus {
    border-color: rgba(204, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.6);
}

.modal-input::placeholder {
    color: #666;
    text-transform: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: white;
}

.modal-btn:active {
    transform: scale(0.98);
}
