/* Modal Notification Styles */

#modalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.modal-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10001;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.modal-notification.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    text-align: left;
    margin: 20px auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f9fafb;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    flex: 1;
}

.modal-notification.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Icon */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    position: relative;
}

.modal-icon i {
    position: relative;
    z-index: 2;
}

.success-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

.error-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.warning-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.info-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.confirm-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Modal Title */
.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

/* Modal Message */
.modal-message {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Modal Buttons */
.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.modal-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.modal-btn-secondary:active {
    background: #d1d5db;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Dark Mode Support - Enhanced for Admin Dashboard */
body.boron-theme:not(.light-mode) .modal-notification .modal-content {
    background: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.boron-theme:not(.light-mode) .modal-notification .modal-title {
    color: #f9fafb !important;
}

body.boron-theme:not(.light-mode) .modal-notification .modal-message {
    color: #d1d5db !important;
}

body.boron-theme:not(.light-mode) .modal-notification .modal-btn-primary {
    background: linear-gradient(135deg, var(--boron-yellow) 0%, #FFA500 100%) !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

body.boron-theme:not(.light-mode) .modal-notification .modal-btn-primary:hover {
    background: linear-gradient(135deg, #FFA500 0%, var(--boron-yellow) 100%) !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5) !important;
}

body.boron-theme:not(.light-mode) .modal-notification .modal-btn-secondary {
    background: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

body.boron-theme:not(.light-mode) .modal-notification .modal-btn-secondary:hover {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-notification {
        padding: 20px !important;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
        width: 90% !important;
        margin: 0 auto !important;
        transform: scale(0.9) translateY(0) !important;
    }
    
    .modal-notification.active .modal-content {
        transform: scale(1) translateY(0) !important;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin: 0 auto 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .modal-message {
        font-size: 0.9rem;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }

    .modal-btn {
        width: 100%;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .modal-notification {
        padding: 16px !important;
    }
    
    .modal-content {
        padding: 1.5rem 1.25rem;
        max-width: 92%;
        width: 92% !important;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-message {
        font-size: 0.85rem;
    }
}


