
/* ===== NOTIFICATION GMAIL ACCOUNT ===== */
.gmail-account-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10002;
    max-width: 400px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
}

.gmail-notification-content {
    padding: 0;
}

.gmail-notification-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.gmail-icon {
    font-size: 18px;
}

.gmail-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gmail-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gmail-notification-body {
    padding: 16px;
}

.gmail-notification-body p {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.gmail-accounts-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.gmail-accounts-buttons button,
.gmail-account-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.gmail-accounts-buttons button:hover,
.gmail-account-btn:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.gmail-accounts-buttons button.current-account,
.gmail-account-btn.current {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.gmail-validation-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.validation-question {
    margin-bottom: 12px;
    color: #374151;
    font-size: 14px;
    text-align: center;
}

.validation-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.validation-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.validation-btn.success {
    background: #10b981;
    color: white;
}

.validation-btn.success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.validation-btn.reset {
    background: #6b7280;
    color: white;
}

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

.validation-btn.cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.validation-btn.cancel:hover {
    background: #e5e7eb;
    border-color: #6b7280;
}

.gmail-notification-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
    .gmail-account-notification {
        top: 60px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .gmail-accounts-buttons {
        grid-template-columns: 1fr;
    }
}

/* CSS pour le scroll infini - À ajouter à la fin de style.css */

.infinite-loading-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 16px 0;
}

.infinite-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.infinite-scroll-hint {
    font-size: 14px;
    color: #3b82f6;
    font-style: italic;
    text-align: center;
    padding: 8px;
    background: #eff6ff;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.all-loaded-hint {
    font-size: 14px;
    color: #10b981;
    font-style: italic;
    text-align: center;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

/* Amélioration du scrollbar pour .email-content */
.email-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.email-content::-webkit-scrollbar {
    width: 8px;
}

.email-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.email-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.email-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* CSS pour le sélecteur de période personnalisée - À ajouter à style.css */

.date-range-section {
    background: #fefefe;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.date-range-section h4 {
    margin-bottom: 20px;
    color: #334155;
    font-size: 18px;
}

.date-range-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-range-inputs {
    display: flex;
    align-items: end;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.date-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.date-range-picker {
    padding: 12px 16px;
    border: 2px solid #6366f1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.date-range-picker:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date-range-picker.date-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.date-range-picker.date-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.date-range-separator {
    font-size: 20px;
    color: #6366f1;
    font-weight: bold;
    padding: 0 8px;
    align-self: center;
    margin-bottom: 12px;
}

.date-range-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.load-range-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
    white-space: nowrap;
}

.load-range-btn:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
}

.load-range-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.quick-range-btn {
    background: #f8fafc;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-range-btn:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    .date-range-section {
        padding: 16px;
    }
    
    .date-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input-group {
        width: 100%;
        min-width: auto;
    }
    
    .date-range-picker {
        width: 100%;
        min-width: auto;
    }
    
    .date-range-separator {
        align-self: center;
        margin: 8px 0;
    }
    
    .date-range-actions {
        flex-direction: column;
    }
    
    .load-range-btn,
    .quick-range-btn {
        width: 100%;
        min-width: auto;
    }
}
