/*
🌐 CROSS-FOLDER SEARCH STYLES - OPFLOW POLICE
Styles pour le toggle de portée de recherche multi-dossiers

✅ VERSION 1.0.0
✅ ISOLÉ : Ne modifie AUCUN style existant
✅ COHÉRENT : Utilise les variables CSS de style.css
✅ RESPONSIVE : Adapté mobile/tablette/desktop

Auteur: Claude Code
Date: 2025-01-15
*/

/* ================================================
   CONTENEUR PRINCIPAL - ADAPTÉ SIDEBAR
   ================================================ */

.cross-folder-scope-selector {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.cross-folder-scope-selector:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ================================================
   HEADER - ADAPTÉ SIDEBAR
   ================================================ */

.scope-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ecf0f1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scope-header i {
    color: white;
    font-size: 14px;
}

/* ================================================
   OPTIONS DE SCOPE - ADAPTÉ SIDEBAR
   ================================================ */

.scope-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scope-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #ecf0f1;
    user-select: none;
    transition: all 0.2s ease;
}

.scope-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateX(2px);
}

.scope-option:active {
    transform: translateX(0);
}

/* ================================================
   RADIO BUTTON CUSTOMISÉ - ADAPTÉ SIDEBAR
   ================================================ */

.scope-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

/* État sélectionné */
.scope-option:has(input[type="radio"]:checked) {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    border-width: 2px;
}

.scope-option input[type="radio"]:checked + span {
    font-weight: 700;
    color: #ffffff;
}

/* ================================================
   ICÔNES - ADAPTÉ SIDEBAR
   ================================================ */

.scope-option i {
    font-size: 14px;
    color: #95a5a6;
    transition: color 0.2s ease;
}

.scope-option:has(input[type="radio"]:checked) i {
    color: white;
}

.scope-option:hover i {
    color: white;
}

/* ================================================
   BADGES DE NOMBRE (optionnel) - ADAPTÉ SIDEBAR
   ================================================ */

.scope-option .folder-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.scope-option:has(input[type="radio"]:checked) .folder-count {
    background: #3498db;
    color: #ffffff;
}

/* ================================================
   INDICATEUR DE SCOPE ACTIF (optionnel)
   ================================================ */

.scope-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: white;
    margin-top: 8px;
    padding: 6px 10px;
    background: #DC714A;
    border-radius: 4px;
}

.scope-active-indicator i {
    font-size: 12px;
}

/* ================================================
   RESPONSIVE - TABLETTE
   ================================================ */

@media (max-width: 1024px) {
    .cross-folder-scope-selector {
        padding: 12px 16px;
    }

    .scope-options {
        gap: 10px;
    }

    .scope-option {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */

@media (max-width: 768px) {
    .cross-folder-scope-selector {
        padding: 10px 8px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .scope-header {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .scope-options {
        gap: 5px;
    }

    .scope-option {
        padding: 8px;
        font-size: 11px;
    }

    .scope-option i {
        font-size: 12px;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cross-folder-scope-selector {
    animation: fadeIn 0.3s ease-out;
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .cross-folder-scope-selector {
        display: none;
    }
}
