/* ==========================================================================
   RS Sales CRM Stylesheet (Theme: Royal Blue / Indigo / Slate)
   ========================================================================== */

:root {
    --crm-primary: #2563eb;        /* Royal Blue (blue-600) */
    --crm-primary-dark: #1d4ed8;   /* Deep Blue (blue-700) */
    --crm-primary-light: #dbeafe;  /* Soft Blue tint */
    --crm-secondary: #0f172a;      /* Slate-900 */
    --crm-accent: #6366f1;         /* Indigo-500 */
    --crm-emerald: #10b981;        /* Emerald-500 for success/conversions */
    --crm-amber: #f59e0b;          /* Amber for warnings/pending */
    --crm-bg-white: #ffffff;
    --crm-bg-light: #f8fafc;       /* slate-50 */
    --crm-text-main: #334155;      /* slate-700 */
    --crm-text-muted: #64748b;     /* slate-500 */
    --crm-border-color: #e2e8f0;   /* slate-200 */
    
    --shadow-crm-glow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
    --shadow-emerald-glow: 0 10px 20px -5px rgba(16, 185, 129, 0.35);
}

.rs-sales-crm-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--crm-text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.rs-sales-crm-content h1,
.rs-sales-crm-content h2,
.rs-sales-crm-content h3,
.rs-sales-crm-content h4,
.rs-sales-crm-content h5,
.rs-sales-crm-content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.rs-sales-crm-content .btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.38) !important;
}
.rs-sales-crm-content .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 14px 25px -5px rgba(37, 99, 235, 0.5) !important;
}

.rs-sales-crm-content .btn-secondary:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
    box-shadow: 0 6px 15px -3px rgba(37, 99, 235, 0.15) !important;
}

.rs-sales-crm-content .text-primary {
    color: #2563eb !important;
}

.crm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 1.5rem;
}

.crm-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: crmPulse 2s infinite;
}

@keyframes crmPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Pipeline Kanban Preview Visual */
.kanban-visual {
    background: #0f172a;
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
}

.kanban-col {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 12px;
    padding: 0.85rem;
}

.kanban-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
    transition: all 0.2s ease;
}
.kanban-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Snippet Code Box */
.snippet-box {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.825rem;
    color: #93c5fd;
    position: relative;
    overflow-x: auto;
}

/* Tracker Breadcrumbs */
.breadcrumb-trail {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 500;
    color: #475569;
}
.breadcrumb-item.active {
    border-color: #93c5fd;
    background: #f0f7ff;
    color: #1d4ed8;
}

/* Live Simulation Card */
.lead-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 9999px;
}

/* 2-Plan Pricing Grid Layout */
.rs-sales-crm-content .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 440px));
    justify-content: center;
    gap: 2.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.rs-sales-crm-content .pricing-grid[style*="display: none"],
.rs-sales-crm-content .pricing-grid[style*="display:none"] {
    display: none !important;
}

@media (max-width: 860px) {
    .rs-sales-crm-content .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

/* ==========================================================================
   Responsive Adaptations for Small / Mobile Screens
   ========================================================================== */
@media (max-width: 768px) {
    .kanban-visual {
        padding: 0.85rem;
        border-radius: 16px;
    }
    .kanban-visual .grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    .kanban-col {
        padding: 0.65rem;
    }
    .snippet-box {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    .breadcrumb-item {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }
}

