
.blacklist-button {
    background: rgba(245, 158, 11, 0.8) !important;
    color: white;
    display: inline-block !important;
}

.blacklist-button:hover {
    background: rgba(217, 119, 6, 0.9) !important;
}

.navigation {
    display: none; /* Masqué par défaut, affiché uniquement en mode liste/détail */
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.nav-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 100px;
}

.nav-button:hover {
    background: #2563eb;
}

.nav-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.email-counter {
    font-weight: 600;
    padding: 6px 12px;
    margin: 0 8px;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.email-counter.unclassified {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-color: #f59e0b;
    color: #92400e;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.email-counter.classified {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.sidebar-email-filters {
    margin-bottom: 24px;
}

.sidebar-email-filters h4 {
    margin-bottom: 16px;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-mode-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sidebar-mode-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.sidebar-mode-btn:hover {
    background: #e2e8f0;
}

.sidebar-mode-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.sidebar-filter-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-filter-group {
    display: flex;
    flex-direction: column;
}

.sidebar-filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-help {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-help:hover {
    background: #2563eb;
    transform: scale(1.1);
}

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

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

.sidebar-filter-select:hover {
    border-color: #9ca3af;
}

.sidebar-filter-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-reset-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.sidebar-reset-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.sidebar-stats {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.sidebar-stats h5 {
    margin: 0 0 12px 0;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.sidebar-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #166534;
}

.sidebar-stat-value {
    font-weight: 600;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
}

.email-status-section {
    margin-bottom: 24px;
}

.email-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    border: 2px solid;
}

.email-status-badge.classified {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.email-status-badge.unclassified {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.badge-icon {
    font-size: 16px;
}

.main-actions-section {
    margin-bottom: 24px;
}

.main-actions-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


