
.labels-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.labels-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.labels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.labels-header h2 {
    margin: 0;
    color: #1e293b;
}

.labels-close {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.labels-close:hover {
    background: #dc2626;
}

.labels-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.labels-section h4 {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.labels-selector {
    margin-bottom: 16px;
}

.labels-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.labels-dropdown:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.selected-labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.recent-dates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #6366f1, var(--primary-blue));
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.more-options-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, var(--primary-blue), #6366f1);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.recent-dates-section,
.more-options-section {
    position: relative;
}

.end-of-results-message {
    display: block;
    padding: 30px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 20px 0;
}

.end-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.end-results-icon {
    font-size: 24px;
}

.end-results-text {
    color: #475569;
    font-weight: 500;
}

.end-results-stats {
    color: #64748b;
    font-size: 13px;
}

/* ===== SYSTÈME DE RECHERCHE DE LIBELLÉS ===== */

.labels-search-container {
    position: relative;
    width: 100%;
}

.labels-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.labels-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.labels-search-input::placeholder {
    color: #64748b;
    font-style: italic;
}

.labels-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

/* ===== BARRE DE PROGRESSION POUR LE CHARGEMENT ===== */

.loading-progress-container {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.loading-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.loading-progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

