/* ============================================
   Notification System
   ============================================ */

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #2d2d2d;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    border-left: 4px solid;
}

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

.notification-hide {
    transform: translateX(120%);
    opacity: 0;
}

.notification-icon {
    font-size: 1.1rem;
    font-weight: bold;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-message {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Types de notifications */
.notification-success {
    border-color: #27ae60;
    background: linear-gradient(135deg, #2d2d2d 0%, #1e3d2a 100%);
}

.notification-success .notification-icon {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.notification-error {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d1e1e 100%);
}

.notification-error .notification-icon {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.notification-warning {
    border-color: #f39c12;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3a1e 100%);
}

.notification-warning .notification-icon {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
}

.notification-info {
    border-color: #3498db;
    background: linear-gradient(135deg, #2d2d2d 0%, #1e2d3d 100%);
}

.notification-info .notification-icon {
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .notification-container {
        left: 10px;
        right: 10px;
        top: 70px;
    }
    
    .notification {
        max-width: none;
    }
}

/* ============================================
   Modal Confirm / Alert
   ============================================ */
.modal-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12050;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-confirm-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.modal-confirm {
    background: linear-gradient(180deg, #2a2118 0%, #1e1812 100%);
    border: 2px solid #5a4a3a;
    border-radius: 12px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modal-confirm-overlay.is-visible .modal-confirm {
    transform: scale(1);
}

.modal-confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--modal-accent, #d4a84b);
    text-shadow: 0 0 10px rgba(212, 168, 75, 0.35);
}

.modal-confirm-title {
    margin: 0 0 0.75rem 0;
    color: #f0e6d2;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.modal-confirm-message {
    margin: 0 0 1.5rem 0;
    color: #a89070;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-confirm .btn-modal {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #4a3a2a;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-confirm .btn-modal-cancel {
    background: rgba(0, 0, 0, 0.35);
    color: #c0a080;
}

.modal-confirm .btn-modal-cancel:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #f0e6d2;
}

.modal-confirm .btn-modal-confirm {
    background: linear-gradient(135deg, #d4a84b, #b5862c);
    color: #1f1407;
    border-color: rgba(212, 168, 75, 0.6);
}

.modal-confirm .btn-modal-confirm:hover {
    filter: brightness(1.08);
}

.btn-modal {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-cancel {
    background: #3d3d3d;
    color: #b0b0b0;
}

.btn-modal-cancel:hover {
    background: #4d4d4d;
    color: #e0e0e0;
}

.btn-modal-confirm {
    color: #1a1a1a;
}

.btn-modal-confirm:hover {
    filter: brightness(1.1);
}
