/* ===========================================
   NAVBAR BOTTOM - STYLE INSTAGRAM
   =========================================== */

.navbar-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    padding: 4px 0 !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

.navbar-bottom-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-bottom-container::-webkit-scrollbar {
    display: none;
}

.navbar-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666666;
    transition: all 0.3s ease;
    padding: 4px 6px;
    border-radius: 8px;
    min-width: 45px;
    flex-shrink: 0;
}

.navbar-bottom-item:hover {
    color: #333333;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.navbar-bottom-item.active {
    color: #333333;
    background: rgba(0, 0, 0, 0.08);
}

.navbar-bottom-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.navbar-bottom-item span {
    font-size: 10px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1;
}

/* Animation pour les interactions */
.navbar-bottom-item:active {
    transform: scale(0.95);
}

/* Responsive - Masquer les textes sur très petits écrans */
@media (max-width: 480px) {
    .navbar-bottom-item span {
        display: none;
    }
    
    .navbar-bottom-item {
        min-width: 45px;
        padding: 10px 6px;
    }
    
    .navbar-bottom-item i {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .navbar-bottom-container {
        padding: 0 4px;
    }
}

/* Ajustement du contenu pour éviter le chevauchement avec la navbar bottom */
body {
    padding-bottom: 60px !important;
    margin-bottom: 0 !important;
}

/* Empêcher tout scroll horizontal */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Assurer que le contenu ne déborde pas */
.container-fluid {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Assurer que la navbar ne soit jamais masquée */
@media (max-width: 768px) {
    .navbar-bottom {
        position: fixed !important;
        bottom: 0 !important;
        z-index: 9999 !important;
    }
}

/* Style pour les pages avec navbar bottom */
.container-fluid {
    margin-bottom: 20px;
}

/* ===========================================
   SWEETALERT CUSTOM STYLES - GLOBAL
   =========================================== */

/* Popup principal */
.swal-custom-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    position: relative !important;
    z-index: 10000 !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Titre */
.swal-custom-title {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 16px !important;
    text-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Contenu */
.swal-custom-content {
    color: #333333 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Icône */
.swal-custom-icon {
    color: #000000 !important;
    font-size: 3rem !important;
    margin-bottom: 16px !important;
}

/* Bouton de confirmation */
.swal-custom-confirm {
    background: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Poppins', sans-serif !important;
    min-width: 120px !important;
    margin-left: 8px !important;
}

.swal-custom-confirm:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

.swal-custom-confirm:active {
    transform: translateY(0) !important;
}

/* Bouton d'annulation */
.swal-custom-cancel {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cccccc !important;
    border-radius: 12px !important;
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    font-family: 'Poppins', sans-serif !important;
    min-width: 120px !important;
    margin-right: 8px !important;
}

.swal-custom-cancel:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: #999999 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.swal-custom-cancel:active {
    transform: translateY(0) !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .swal-custom-popup {
        margin: 20px !important;
        border-radius: 20px !important;
    }
    
    .swal-custom-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .swal-custom-content {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }
    
    .swal-custom-icon {
        font-size: 2.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .swal-custom-confirm,
    .swal-custom-cancel {
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
        min-width: 100px !important;
    }
}

@media (max-width: 576px) {
    .swal-custom-popup {
        margin: 15px !important;
        border-radius: 16px !important;
    }
    
    .swal-custom-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .swal-custom-content {
        font-size: 0.9rem !important;
        margin-bottom: 18px !important;
    }
    
    .swal-custom-icon {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .swal-custom-confirm,
    .swal-custom-cancel {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        min-width: 90px !important;
        margin: 4px !important;
    }
    
    /* Boutons en colonne sur très petit écran */
    .swal2-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .swal-custom-confirm,
    .swal-custom-cancel {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Animation d'entrée personnalisée */
.swal2-show {
    animation: swalCustomShow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes swalCustomShow {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Overlay backdrop */
.swal2-backdrop {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* Forcer le centrage de SweetAlert */
.swal2-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.swal2-popup {
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* ===========================================
   TOAST NOTIFICATIONS - GLOBAL
   =========================================== */

.toast-notification {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-50%) scale(0.8) !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    padding: 16px 20px !important;
    min-width: 300px !important;
    max-width: 90vw !important;
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Poppins', sans-serif !important;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(-50%) scale(1) !important;
    opacity: 1 !important;
}

.toast-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.toast-icon {
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
}

.toast-message {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Toast success */
.toast-success {
    border-left: 4px solid #000000 !important;
}

.toast-success .toast-icon {
    color: #000000 !important;
}

.toast-success .toast-message {
    color: #333333 !important;
}

/* Toast error */
.toast-error {
    border-left: 4px solid #000000 !important;
}

.toast-error .toast-icon {
    color: #000000 !important;
}

.toast-error .toast-message {
    color: #333333 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-notification {
        min-width: 280px !important;
        padding: 14px 18px !important;
    }
    
    .toast-message {
        font-size: 0.9rem !important;
    }
    
    .toast-icon {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .toast-notification {
        min-width: 260px !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
    }
    
    .toast-message {
        font-size: 0.85rem !important;
    }
    
    .toast-icon {
        font-size: 1rem !important;
    }
}