/**
 * Modal Notification Styles
 * Handles styling for modal dialogs and notifications
 */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
}

/* Modal Notification */
.modal-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.modal-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-notification-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Modal Header */
.modal-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
}

.modal-notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-notification-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-notification-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Modal Body */
.modal-notification-body {
    padding: 24px;
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    overflow-y: auto;
    max-height: 400px;
}

/* Modal Footer */
.modal-notification-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
    justify-content: flex-end;
}

.modal-notification-footer .btn {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-notification-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-notification-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modal-notification-footer .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.modal-notification-footer .btn-secondary:hover {
    background: #e0e0e0;
}

/* Modal Type Styling */

/* Success */
.modal-notification.modal-success .modal-notification-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.modal-notification.modal-success .modal-notification-header h3 {
    color: #22c55e;
}

.modal-notification.modal-success .modal-notification-header::before {
    content: '✓';
    display: inline-block;
    margin-right: 8px;
    color: #22c55e;
    font-weight: 700;
    font-size: 20px;
}

/* Error */
.modal-notification.modal-error .modal-notification-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.modal-notification.modal-error .modal-notification-header h3 {
    color: #ef4444;
}

.modal-notification.modal-error .modal-notification-header::before {
    content: '✕';
    display: inline-block;
    margin-right: 8px;
    color: #ef4444;
    font-weight: 700;
    font-size: 20px;
}

.modal-notification.modal-error .modal-notification-body {
    color: #7f1d1d;
}

/* Warning */
.modal-notification.modal-warning .modal-notification-header {
    background: linear-gradient(135deg, rgba(233, 168, 38, 0.05) 0%, rgba(233, 168, 38, 0.02) 100%);
}

.modal-notification.modal-warning .modal-notification-header h3 {
    color: #e9a826;
}

.modal-notification.modal-warning .modal-notification-header::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #e9a826;
    font-weight: 700;
    font-size: 18px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #e9a826;
}

.modal-notification.modal-warning .modal-notification-footer .btn-primary {
    background: linear-gradient(135deg, #e9a826 0%, #d97706 100%);
}

/* Info */
.modal-notification.modal-info .modal-notification-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.modal-notification.modal-info .modal-notification-header h3 {
    color: #3b82f6;
}

.modal-notification.modal-info .modal-notification-header::before {
    content: 'i';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-notification {
        min-width: 280px;
        max-width: 90vw;
    }

    .modal-notification-header {
        padding: 16px 20px;
    }

    .modal-notification-header h3 {
        font-size: 16px;
    }

    .modal-notification-body {
        padding: 20px;
        max-height: 300px;
        font-size: 14px;
    }

    .modal-notification-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }

    .modal-notification-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-notification {
        max-width: 95vw;
    }

    .modal-body {
        padding: 16px;
        max-height: 250px;
    }
}
