/* Styles pour le système de visite guidée */

/* Personnalisation de Driver.js pour le thème SEN */
.driver-popover {
    background: white;
    border: 2px solid #1e7e34;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.driver-popover-title {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    margin: -8px -16px 8px -16px;
    border-radius: 6px 6px 0 0;
    font-size: 16px;
}

.driver-popover-description {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 16px;
}

.driver-popover-footer {
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.driver-popover .driver-progress-bar {
    background: #e9ecef;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.driver-popover .driver-progress-bar-fill {
    background: linear-gradient(135deg, #28a745, #20c997);
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Boutons de navigation personnalisés */
.driver-popover .driver-next-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
    transition: background 0.2s ease;
}

.driver-popover .driver-next-btn:hover {
    background: #218838;
}

.driver-popover .driver-prev-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
    transition: background 0.2s ease;
}

.driver-popover .driver-prev-btn:hover {
    background: #5a6268;
}

.driver-popover .driver-close-btn {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.driver-popover .driver-close-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Bouton d'aide flottant */
.floating-help-btn {
    transition: all 0.3s ease;
}

.floating-help-btn:hover {
    transform: translateY(-2px);
}

.floating-help-btn .btn {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 126, 52, 0.3);
    transition: all 0.3s ease;
}

.floating-help-btn .btn:hover {
    background: linear-gradient(135deg, #155724, #1e7e34);
    box-shadow: 0 6px 20px rgba(30, 126, 52, 0.4);
    transform: scale(1.05);
}

.floating-help-btn .dropdown-menu {
    border: 2px solid #28a745;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
}

.floating-help-btn .dropdown-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 600;
    margin: -8px -16px 8px -16px;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
}

.floating-help-btn .dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.floating-help-btn .dropdown-item:hover {
    background: #f8f9fa;
    color: #28a745;
    transform: translateX(4px);
}

.floating-help-btn .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #28a745;
}

/* Animation d'entrée pour le bouton d'aide */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-help-btn {
    animation: fadeInUp 0.6s ease-out 2s both;
}

/* Badge de nouvelle fonctionnalité */
.floating-help-btn::before {
    content: "NOUVEAU";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 1051;
    display: none; /* Masqué par défaut */
}

/* Afficher le badge pour les nouveaux utilisateurs */
.floating-help-btn.new-user::before {
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .floating-help-btn {
        bottom: 80px; /* Éviter le conflit avec les barres de navigation mobile */
        right: 15px;
    }
    
    .floating-help-btn .btn {
        padding: 12px;
    }
    
    .floating-help-btn .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        transform: translateX(-10px);
    }
}

/* Overlay pour mettre en surbrillance les éléments */
.driver-highlighted-element {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.4) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

/* Animation de fond pour l'overlay */
.driver-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease !important;
}

/* Indicateur de progression personnalisé */
.tour-progress {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border: 2px solid #28a745;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.tour-progress.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

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