/* ============================================================================
   MODAL NOTIFICATION STYLES
   ============================================================================ */

/* Modal notification specific styles */
.modal-notification {
    z-index: 10000;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-notification[style*="display: flex"] {
    display: flex !important;
}

.modal-notification .modal-content {
    max-width: 350px;
    width: 90%;
    max-height: 90vh;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0;
}

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

/* Icon container */
.modal-icon-container {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.1));
}

.modal-icon {
    font-size: 64px;
    display: inline-block;
    animation: iconPulse 0.5s ease-out;
}

@keyframes iconPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal body */
.modal-body {
    padding: 20px 30px;
    text-align: center;
    max-height: 40vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    white-space: pre-line;
}

/* Type-specific styles */
.modal-success .modal-icon-container {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.15));
}

.modal-success .modal-icon {
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
}

.modal-error .modal-icon-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.15));
}

.modal-error .modal-icon {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.modal-warning .modal-icon-container {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(217, 119, 6, 0.15));
}

.modal-warning .modal-icon {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

.modal-info .modal-icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
}

.modal-info .modal-icon {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.modal-confirm .modal-icon-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.15));
}

.modal-confirm .modal-icon {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.modal-loading .modal-icon-container {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), rgba(75, 85, 99, 0.15));
}

.modal-loading .modal-icon {
    animation: iconRotate 1.5s linear infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal actions */
.modal-notification .modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.modal-notification .modal-actions button {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-notification .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    color: white;
    cursor: pointer;
}

.modal-notification .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.modal-notification .btn-primary:active {
    transform: translateY(0);
}

.modal-notification .btn-secondary {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    cursor: pointer;
}

.modal-notification .btn-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-notification .btn-secondary:active {
    transform: translateY(0);
}

/* Success button variant */
.modal-success .btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.modal-success .btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Error button variant */
.modal-error .btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modal-error .btn-primary:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Warning button variant */
.modal-warning .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.modal-warning .btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    .modal-notification .modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .modal-icon {
        font-size: 48px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-message {
        font-size: 14px;
    }

    .modal-notification .modal-actions button {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Focus styles for accessibility */
.modal-notification button:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

