/* Cacher la scrollbar pour Chrome, Safari et Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Cacher la scrollbar pour IE, Edge et Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ajouter un délai pour le menu déroulant */
.dropdown-menu {
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

.gradient-text {
    background: linear-gradient(45deg, #FCD34D, #2E8B57);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(to right, #2E8B57, #DC143C);
    background-clip: text;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Style pour la scrollbar personnalisée */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Pour s'assurer que le menu ne s'affiche pas par défaut */
[x-cloak] {
    display: none !important;
}

/* Animation du badge de notification */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Styles pour le modal d'alerte WebSocket */
.websocket-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.websocket-modal-content {
    min-height: 200px;
}

/* Custom Language Selector Styles */
.lang-selector-container {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    transition: all 0.2s;
}

.lang-selector-container:hover {
    border-color: #007A5E;
    background: white;
}

.lang-selector {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    outline: none;
    padding: 4px 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
    padding-right: 20px;
}

.lang-selector option {
    background-color: white;
    color: #1f2937;
}
