/* ========================================
   BGModal - Reusable Modal Component
   ======================================== */

#bg-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#bg-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

#bg-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

#bg-modal-icon {
    font-size: 2rem;
}

#bg-modal-title {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

#bg-modal-body {
    padding: 1.5rem;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

#bg-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modal Animations */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Button Styles */
.bg-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.bg-modal-btn.primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.bg-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.bg-modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.bg-modal-btn.secondary:hover {
    background: #e9ecef;
}

.bg-modal-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.bg-modal-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

/* Modal Header States */
#bg-modal-header.success {
    border-color: #28a745;
}

#bg-modal-header.error {
    border-color: #dc3545;
}

#bg-modal-header.warning {
    border-color: #ffc107;
}

#bg-modal-header.confirm {
    border-color: #007cba;
}
