/* ===== MODERN NOTIFICATIONS SYSTEM STYLES ===== */

/* Container pour les notifications */
.notifications-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

/* Positions des notifications */
.notifications-container.top-right {
    top: 0;
    right: 0;
}

.notifications-container.top-left {
    top: 0;
    left: 0;
}

.notifications-container.bottom-right {
    bottom: 0;
    right: 0;
}

.notifications-container.bottom-left {
    bottom: 0;
    left: 0;
}

.notifications-container.top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.notifications-container.bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== TOAST NOTIFICATIONS ===== */
.notification-toast {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100%);
    max-width: 100%;
    overflow: hidden;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.hide {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
}

.notification-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Types de notifications */
.notification-toast.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.notification-toast.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.notification-toast.warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.notification-toast.info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

/* Icônes des notifications */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.notification-toast.success .notification-icon {
    background: #10b981;
}

.notification-toast.error .notification-icon {
    background: #ef4444;
}

.notification-toast.warning .notification-icon {
    background: #f59e0b;
}

.notification-toast.info .notification-icon {
    background: #3b82f6;
}

.notification-icon::before {
    content: '';
}

.notification-toast.success .notification-icon::before {
    content: '✓';
}

.notification-toast.error .notification-icon::before {
    content: '✕';
}

.notification-toast.warning .notification-icon::before {
    content: '⚠';
}

.notification-toast.info .notification-icon::before {
    content: 'ℹ';
}

/* Contenu de la notification */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Bouton de fermeture */
.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.notification-close:hover {
    background: rgba(107, 114, 128, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.notification-close::before {
    content: '×';
    font-weight: bold;
}

/* Barre de progression */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    width: 100%;
    transition: width linear;
    transform-origin: left;
}

.notification-toast.success .notification-progress-bar {
    background: #10b981;
}

.notification-toast.error .notification-progress-bar {
    background: #ef4444;
}

.notification-toast.warning .notification-progress-bar {
    background: #f59e0b;
}

.notification-toast.info .notification-progress-bar {
    background: #3b82f6;
}

/* ===== MODAL CONFIRMATIONS ===== */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notification-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 440px;
    width: 100%;
    padding: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification-modal-overlay.show .notification-modal {
    transform: scale(1) translateY(0);
}

.notification-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.notification-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.notification-modal.danger .notification-modal-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-modal.warning .notification-modal-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-modal.info .notification-modal-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-modal-icon::before {
    content: '⚠';
}

.notification-modal.danger .notification-modal-icon::before {
    content: '⚠';
}

.notification-modal.warning .notification-modal-icon::before {
    content: '⚠';
}

.notification-modal.info .notification-modal-icon::before {
    content: 'ℹ';
}

.notification-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.notification-modal-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.notification-modal-body {
    padding: 16px 24px 24px;
}

.notification-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.notification-modal-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.notification-modal-button:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.notification-modal-button.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.notification-modal-button.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.notification-modal-button.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-modal-button.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification-modal-button.secondary {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.notification-modal-button.secondary:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== PROGRESS NOTIFICATIONS ===== */
.notification-progress-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 12px;
    pointer-events: auto;
}

.notification-progress-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.notification-progress-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-progress-text {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.notification-progress-bar-container {
    background: #e5e7eb;
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
}

.notification-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.notification-toast.bounce {
    animation: bounce 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
    .notifications-container {
        max-width: 100%;
        padding: 12px;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    .notification-toast {
        margin-bottom: 8px;
        padding: 14px 16px;
    }
    
    .notification-modal {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .notification-modal-actions {
        flex-direction: column;
    }
    
    .notification-modal-button {
        min-width: auto;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .notification-toast {
        background: #1f2937;
        border-color: rgba(75, 85, 99, 0.2);
        color: #f9fafb;
    }
    
    .notification-title {
        color: #f9fafb;
    }
    
    .notification-message {
        color: #d1d5db;
    }
    
    .notification-modal {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .notification-modal-header {
        border-bottom-color: #374151;
    }
    
    .notification-modal-title {
        color: #f9fafb;
    }
    
    .notification-modal-message {
        color: #d1d5db;
    }
}

/* ===== ACCESSIBILITY ===== */
.notification-toast:focus,
.notification-modal-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .notification-toast,
    .notification-modal,
    .notification-modal-overlay,
    .notification-progress-spinner {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== SPECIAL STYLES FOR RESERVATION NOTIFICATIONS ===== */
.notification-reservation {
    border-left-width: 6px;
}

.notification-reservation .notification-icon {
    font-size: 16px;
}

.notification-reservation.cancelled .notification-icon::before {
    content: '🚫';
}

.notification-reservation.confirmed .notification-icon::before {
    content: '✅';
}

.notification-reservation.updated .notification-icon::before {
    content: '📝';
}

.notification-reservation.reminder .notification-icon::before {
    content: '⏰';
}
