
.action-btn.important.starred-active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
    border: 2px solid #d97706 !important;
}

.action-btn.important.starred-active:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    transform: translateY(-2px);
}

.dynamic-form-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.dynamic-form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 60px;
    resize: vertical;
}

.required {
    color: #ef4444;
}

/* ===== STYLES POUR APERÇU EMAIL (GOOGLE TASKS) ===== */

.email-preview-section {
    margin-bottom: 16px;
}

.email-preview-section h5 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.task-list-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.task-list-selector select {
    flex: 1;
}

.create-list-quick-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.create-list-quick-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.save-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.save-button:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.save-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cancel-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-button:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.quick-navigation-section,
.quick-stats-section {
    margin-bottom: 20px;
}

.quick-navigation-section h4,
.quick-stats-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

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

.quick-nav-btn {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    text-align: center;
}

.quick-nav-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.progress-bar-container {
    margin-top: 8px;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 8px;
}

.progress-text {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.email-content {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    /* min-height: 300px; */
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.center-content {
    text-align: center;
    padding: 40px;
}

/* ==========================================
   GESTION DES MULTIPLES RENDEZ-VOUS
   ========================================== */

.multiple-rdv-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-analyze-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    display: block;
    margin: 0 auto;
}

.ai-analyze-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.ai-analyze-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

#rdv-appointments-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 60px;
}

.appointment-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.appointment-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.appointment-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.appointment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-details-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.toggle-details-btn:hover {
    color: #0ea5e9;
    transform: scale(1.1);
}

.remove-appointment-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-appointment-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.appointment-details {
    padding: 16px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

/* Confiance IA */
.ai-confidence-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(to right, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid #bae6fd;
    border-radius: 6px;
    margin-top: 12px;
}

.confidence-label {
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
}

.confidence-bar {
    flex: 1;
    height: 6px;
    background: #e0f2fe;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
    border-radius: 3px;
}

.confidence-text {
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    min-width: 35px;
    text-align: right;
}

/* Raisonnement IA */
.ai-reasoning {
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 6px;
    margin-top: 12px;
    color: #166534;
    font-size: 11px;
}

/* Bouton ajouter RDV */
.add-appointment-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    display: block;
    margin: 0 auto;
}

.add-appointment-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Champs pré-remplis par l'IA */
.ai-filled {
    background: linear-gradient(to right, #f0f9ff 0%, #ffffff 100%) !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.ai-filled:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

.selected-invitee-chip {
    display: inline-block;
    background: #dbeafe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin: 4px 4px 4px 0;
}


