/* Styles pour le composant de recherche globale type Command */
.search-command {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-command-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.search-command-header input {
    font-size: 1rem;
    height: 48px;
}

.search-command-header input:focus {
    box-shadow: none;
    outline: none;
}

.search-command-body {
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
}

.search-command-group-header {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.search-command-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.search-command-item:hover {
    background-color: #f8f9fa;
}

.search-command-item.active {
    background-color: #e9ecef;
}

.search-command-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #f8f9fa;
    margin-right: 12px;
}

.search-command-content {
    flex: 1;
}

.search-command kbd {
    display: inline-block;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Style pour la mise en évidence des termes de recherche */
.search-highlight {
    background-color: rgba(255, 230, 0, 0.3);
    font-weight: bold;
    border-radius: 2px;
    padding: 0 2px;
    margin: 0 -2px;
}

/* Animation d'entrée pour le modal */
@keyframes commandFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#searchCommandModal .modal-dialog {
    animation: commandFadeIn 0.2s ease-out;
}

/* Personnalisation du scrollbar */
.search-command-body::-webkit-scrollbar {
    width: 6px;
}

.search-command-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-command-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-command-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    #searchCommandModal .modal-dialog {
        margin: 0.5rem;
    }
    
    .search-command-header .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .search-command-header .ms-auto {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
}
