/* ============================================
   BOUTONS FLOTTANTS EN HAUT À DROITE
   ============================================ */

.floating-buttons {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 12px !important;
    flex-direction: row !important;
    align-items: center !important;
}

.float-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    white-space: nowrap !important;
}

.float-btn i {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

.float-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.float-btn:hover i {
    transform: scale(1.1) !important;
}

.float-btn:active {
    transform: translateY(0) !important;
}

/* Bouton Gérer Équipe - Bleu */
.float-btn-equipe {
    background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%) !important;
    color: #FFFFFF !important;
}

.float-btn-equipe:hover {
    background: linear-gradient(135deg, #005A9E 0%, #004578 100%) !important;
}

/* Bouton Gérer Arrêts - Violet */
.float-btn-arret {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
    color: #FFFFFF !important;
}

.float-btn-arret:hover {
    background: linear-gradient(135deg, #5B21B6 0%, #4C1D95 100%) !important;
}

/* Bouton Gérer Machines - Vert */
.float-btn-machine {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
}

.float-btn-machine:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* Bouton Déconnexion - Rouge */
.float-btn-logout {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #FFFFFF !important;
}

.float-btn-logout:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
}

/* Label du bouton */
.float-btn-label {
    display: inline !important;
    font-size: 13px !important;
}

/* Animation d'entrée */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-buttons .float-btn {
    animation: floatIn 0.4s ease forwards !important;
}

.floating-buttons .float-btn:nth-child(1) {
    animation-delay: 0.1s !important;
}

.floating-buttons .float-btn:nth-child(2) {
    animation-delay: 0.2s !important;
}

.floating-buttons .float-btn:nth-child(3) {
    animation-delay: 0.3s !important;
}

.floating-buttons .float-btn:nth-child(4) {
    animation-delay: 0.4s !important;
}

/* Responsive - Sur mobile, empiler verticalement */
@media (max-width: 768px) {
    .floating-buttons {
        flex-direction: column !important;
        top: 10px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    
    .float-btn {
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
    
    .float-btn-label {
        font-size: 11px !important;
    }
    
    .float-btn i {
        font-size: 14px !important;
    }
}

/* Version compacte (icône seulement) pour très petits écrans */
@media (max-width: 480px) {
    .float-btn-label {
        display: none !important;
    }
    
    .float-btn {
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
}

/* Ajustement pour que le contenu principal ne soit pas caché par les boutons */
.main-app {
    padding-top: 0 !important;
}

/* Ajout d'un espace en haut de la section OF pour éviter le chevauchement */
.of-selection-section {
    margin-top: 20px !important;
}

