/**
 * User-Facing Notification Styles
 * Professional, modern notifications using Tailwind integration
 * Supports modal, banner, toast, inline displays
 * 
 * @version 1.0.0
 */

/* ========== MODAL NOTIFICATIONS ========== */

.notification-modal-container {
    z-index: 9999;
}

.notification-modal-popup {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.notification-content {
    line-height: 1.6;
    color: #374151;
}

.notification-modal-popup .swal2-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.notification-modal-popup .swal2-html-container {
    font-size: 1rem;
}

.notification-modal-popup .swal2-confirm,
.notification-modal-popup .swal2-deny,
.notification-modal-popup .swal2-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.notification-modal-popup .swal2-confirm {
    background-color: #2563eb;
    border-color: #2563eb;
}

.notification-modal-popup .swal2-confirm:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.notification-modal-popup .swal2-deny {
    background-color: #6b7280;
    border-color: #6b7280;
}

.notification-modal-popup .swal2-deny:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* ========== BANNER NOTIFICATIONS ========== */

.notification-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 9998;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.notification-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.notification-banner-description {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

.notification-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.notification-banner-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.notification-banner-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.notification-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-banner-close:hover {
    opacity: 1;
}

/* ========== TOAST NOTIFICATIONS ========== */

.notification-toast {
    background-color: white;
    border-left: 4px solid #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.notification-toast .swal2-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.notification-toast .swal2-html-container {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ========== INLINE NOTIFICATIONS ========== */

.notification-inline {
    background-color: #f0f9ff;
    border-left: 4px solid #0284c7;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.notification-inline-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0c4a6e;
}

.notification-inline-close {
    background: none;
    border: none;
    color: #0c4a6e;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
}

.notification-inline-close:hover {
    opacity: 1;
}

.notification-inline p {
    margin: 0 0 0.75rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.notification-inline-link {
    display: inline-block;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.notification-inline-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* ========== LINK BUTTONS ========== */

.notification-link-btn {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.notification-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
    .notification-banner-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .notification-banner-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .notification-modal-popup {
        max-width: calc(100vw - 2rem);
    }
    
    .notification-banner {
        padding: 0.75rem 1rem;
    }
}
