
/* ═══════════════════════════════════════════════════════════════
   GIRI CRM — AI FEATURES STYLES
   ═══════════════════════════════════════════════════════════════ */

/* AI Toolbar */
.gcrm-ai-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.06) 100%);
    border-top: 1px solid rgba(99,102,241,0.15);
    flex-wrap: wrap;
}

/* AI Button */
.gcrm-btn-ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
    white-space: nowrap;
}
.gcrm-btn-ai:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }
.gcrm-btn-ai:active { transform: translateY(0); }
.gcrm-btn-xs { padding: 4px 8px; font-size: 11px; }

/* AI Score Badge */
.gcrm-ai-score {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.gcrm-ai-score--a { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.gcrm-ai-score--b { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.gcrm-ai-score--c { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.gcrm-ai-score--d { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* AI Result Panel */
.gcrm-ai-result {
    margin: 0 20px 16px;
    border-radius: 10px;
    overflow: hidden;
    animation: gcrm-fade-in 0.3s ease;
}
@keyframes gcrm-fade-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.gcrm-ai-score-card,
.gcrm-ai-summary,
.gcrm-ai-email,
.gcrm-ai-actions,
.gcrm-ai-deal-card {
    padding: 16px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
}

.gcrm-ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.gcrm-ai-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(99,102,241,0.3);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gcrm-ai-error {
    padding: 12px 16px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px;
    color: #ef4444;
    font-size: 13px;
}

/* Email Popup (relances) */
.gcrm-email-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.gcrm-email-popup {
    background: var(--bg-primary, #1a1f2e);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: gcrm-fade-in 0.25s ease;
}
