/* Modals - Dark Theme */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1F1F1F;
    border: 1px solid #2D2D2D;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 200ms ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #2D2D2D;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 150ms ease;
}

.modal-close:hover {
    color: #FFFFFF;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #2D2D2D;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #1A1A1A;
}

/* Modal Sizes */
.modal-sm {
    max-width: 400px;
}

.modal-lg {
    max-width: 700px;
}

.modal-xl {
    max-width: 900px;
}

/* Confirm Modal */
.confirm-modal .modal-body {
    text-align: center;
    padding: 2rem;
}

.confirm-modal .confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-modal .confirm-icon.warning {
    color: #F59E0B;
}

.confirm-modal .confirm-icon.danger {
    color: #EF4444;
}

.confirm-modal .confirm-message {
    font-size: 1.125rem;
    color: #B0B0B0;
    margin-bottom: 0.5rem;
}

.confirm-modal .confirm-sub {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal {
        max-height: 95vh;
        border-radius: 0.75rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

