:root{
--bg:#f5f7fc;--panel:#fff;--panel2:#f8f9fd;--line:#e5e9f2;--text:#182238;--muted:#738096;
--purple:#7657f4;--blue:#3988f5;--cyan:#12b8c9;--green:#13ad73;--orange:#f49b35;--pink:#e8529d;--red:#eb5265;--indigo:#5264e8;--teal:#14a99a;--yellow:#e6a329;
--shadow:0 10px 30px rgba(40,55,90,.07);--radius:16px
}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#f8faff 0,#f1f5fb 55%,#f8f5ff 100%);color:var(--text);font:14px Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}
label{display:block;color:#68758b;font-size:11px;font-weight:800;margin:13px 0 6px}
.sidebar{position:fixed;z-index:20;left:0;top:0;bottom:0;width:238px;background:#fff;border-right:1px solid var(--line);padding:20px 13px;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(40,55,90,.05)}
.brand{display:flex;align-items:center;gap:10px;padding:0 9px 24px;font-size:18px}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:linear-gradient(135deg,#6643f2,#a083ff);font-weight:900;color:#fff;font-size:12px;box-shadow:0 8px 18px rgba(108,69,245,.25)}.brand small{display:block;color:#9ba5b5;font-size:9px;letter-spacing:2px}
.nav{display:flex;align-items:center;gap:12px;color:#66738a;padding:11px 12px;border-radius:11px;font-weight:800;margin:3px 0}.nav:hover{background:#f1efff;color:var(--purple)}.nav.active{background:linear-gradient(100deg,#eeeaff,#f7f5ff);color:#6545df;box-shadow:inset 3px 0 #7657f4}.nav i{font-style:normal;width:19px;text-align:center;font-size:15px}
.side-bottom{margin-top:auto}.caller-status{display:flex;gap:9px;align-items:center;border:1px solid #e2e7f0;border-radius:13px;background:linear-gradient(135deg,#f6fbff,#f6f1ff);padding:12px;margin-bottom:10px}.caller-status i{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(19,173,115,.11)}
.caller-status b,.caller-status small{display:block}.caller-status small{color:var(--muted);font-size:10px;margin-top:2px}
.main{margin-left:238px;min-height:100vh}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(13px);z-index:10}.topbar h1{font-size:19px;margin:2px 0}.kicker{text-transform:uppercase;color:#8994a8;font-size:10px;letter-spacing:1px}.top-right{display:flex;align-items:center;gap:10px}.search{width:285px;background:#f7f9fd;border:1px solid #dfe5ef;color:var(--text);padding:10px 12px;border-radius:11px;outline:0}.avatar,.avatar-sm{display:grid;place-items:center;color:#fff;border:0;font-weight:850}.avatar{width:39px;height:39px;border-radius:11px;background:linear-gradient(135deg,#ff6b9a,#7657f4)}.avatar-sm{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#7a5af6,#49a6ff);font-size:11px}
.menu{display:none}.content{padding:28px;max-width:1650px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.page-head h2{font-size:24px;margin:0}.page-head p{color:var(--muted);margin:6px 0}
.actions{display:flex;gap:7px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dfe5ef;background:#fff;color:#354052;padding:9px 13px;border-radius:10px;font-weight:800;cursor:pointer;box-shadow:0 2px 7px rgba(25,35,55,.03)}.btn:hover{transform:translateY(-1px);background:#fafbfe}.btn.primary{background:linear-gradient(135deg,#7657f4,#5e76ee);border-color:#7657f4;color:#fff;box-shadow:0 8px 17px rgba(102,78,225,.2)}.btn.danger{color:var(--red)}.btn.sm{font-size:11px;padding:7px 9px}.btn.wide{width:100%;margin-top:15px}.btn.wa{background:#e8fbf3;border-color:#bdeed9;color:#07935f}.wide-wa{width:100%;margin-top:10px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:15px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,#7657f4,#4d9df7,#12b8c9)}.stat:nth-child(2):before{background:linear-gradient(90deg,#3988f5,#12b8c9)}.stat:nth-child(3):before{background:linear-gradient(90deg,#13ad73,#54c992)}.stat:nth-child(4):before{background:linear-gradient(90deg,#f49b35,#f05b7d)}.stat small,.stat span{display:block;color:var(--muted);font-size:11px}.stat strong{display:block;font-size:29px;margin:9px 0 4px}
.grid2{display:grid;grid-template-columns:1.25fr .75fr;gap:15px}.bottom{margin-top:15px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.panel-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-head small,.panel-head a{color:var(--muted);font-size:11px}.panel-body{padding:16px}
.queue{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #e4e8f1;background:#fafbfe;border-radius:12px;margin-bottom:9px;transition:.15s}.queue:hover{border-color:#cfc7ff;box-shadow:0 5px 18px rgba(80,70,170,.06)}.queue:last-child{margin-bottom:0}.queue b{display:block}.queue small{display:block;color:var(--muted);margin-top:4px;font-size:11px}
.metric{margin-bottom:15px}.metric>div:first-child{display:flex;justify-content:space-between;margin-bottom:6px}.metric small{color:var(--muted)}.bar{height:8px;border-radius:99px;background:#edf0f6;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#7657f4,#12b8c9);border-radius:99px}
.person-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}.person-row:last-child{border:0}.person-row>div{flex:1}.person-row b,.person-row small{display:block}.person-row small{color:var(--muted);font-size:10px;margin-top:2px}.person-row>a{background:#f2efff;border:1px solid #dfd7ff;border-radius:8px;padding:5px 8px;color:#6746df}
.activity{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}.activity:last-child{border:0}.activity>span{width:30px;height:30px;border-radius:9px;background:#f0edff;display:grid;place-items:center;color:var(--purple)}.activity b,.activity small,.activity em{display:block}.activity small{color:var(--muted);font-size:11px;margin-top:3px}.activity em{color:#9aa3b2;font-size:9px;margin-top:3px;font-style:normal}
.filters{display:flex;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px;margin-bottom:9px;box-shadow:var(--shadow)}.filter-form{display:flex;gap:8px;flex-wrap:wrap;width:100%}.grow{flex:1;min-width:230px}
.input,.select,.textarea{width:100%;background:#fff;border:1px solid #dfe5ef;color:var(--text);border-radius:10px;padding:10px;outline:0}.input::placeholder,.textarea::placeholder{color:#a1a9b7}.textarea{min-height:80px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#9c86ff;box-shadow:0 0 0 3px rgba(108,69,245,.08)}
/* Colorful filter controls */
.filter-form .select{font-weight:750}.filter-form .select[name="brand"]{background:#f2efff;border-color:#dcd3ff;color:#6344d9}.filter-form .select[name="assigned"]{background:#eaf4ff;border-color:#cce3ff;color:#2878c8}.filter-form .select[name="category"]{background:#e9fbf8;border-color:#c8eee7;color:#078e7e}.filter-form .select[name="status"]{background:#fff7e5;border-color:#f4dfad;color:#a56b08}.filter-form .select[name="priority"]{background:#fff0f4;border-color:#f4cbd5;color:#c83e55}
.assigned-pills,.brand-pills{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 8px;color:var(--muted);font-size:11px}.assigned-pills a,.brand-pills a{padding:7px 12px;border:1px solid var(--line);border-radius:99px;background:#fff;font-weight:800;transition:.15s}.assigned-pills a:nth-of-type(1){background:#f3f0ff;color:#6847df}.assigned-pills a:nth-of-type(2){background:#ebf6ff;color:#2478c7}.assigned-pills a:nth-of-type(3){background:#eafaf4;color:#078c5c}.assigned-pills a:nth-of-type(4){background:#fff5e8;color:#a9680b}.assigned-pills a.active{box-shadow:0 0 0 2px #fff,0 0 0 4px currentColor}.brand-pills a:nth-of-type(1){background:#f2efff;color:#6948df}.brand-pills a:nth-of-type(2){background:#fff0f7;color:#c23d83}.brand-pills a:nth-of-type(3){background:#eaf6ff;color:#2d80d5}.brand-pills a:nth-of-type(4){background:#fff7e5;color:#a66b08}.brand-pills a.active{box-shadow:0 0 0 2px #fff,0 0 0 4px currentColor}
table{width:100%;border-collapse:collapse;min-width:1040px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f8f9fc;color:#788397;font-size:10px;text-transform:uppercase;letter-spacing:.6px}td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.table-wrap{overflow:auto}.lead{display:flex;gap:8px;align-items:center}.lead b{font-size:12px}.nowrap{white-space:nowrap}
.badge{display:inline-flex;border:1px solid transparent;border-radius:99px;padding:5px 8px;font-size:9px;font-weight:850;white-space:nowrap}.badge.green{color:#07895b;background:#e7fbf1;border-color:#c3efdb}.badge.yellow{color:#a66b05;background:#fff6dd;border-color:#f2dfa9}.badge.red{color:#c73c50;background:#fff0f3;border-color:#f4cbd2}.badge.blue{color:#2678c9;background:#eaf5ff;border-color:#cfe6ff}.badge.purple{color:#6847df;background:#f0edff;border-color:#ddd5ff}.badge.gray{color:#737e90;background:#f2f4f7;border-color:#e1e5eb}
.alert,.flash{padding:11px 13px;border-radius:10px;margin-bottom:13px}.alert.error,.flash.error{background:#fff0f2;border:1px solid #f2cbd2;color:#c83d52}.alert.success,.flash.success{background:#eafaf3;border:1px solid #c5eedb;color:#07895b}.flash{position:fixed;right:20px;top:85px;z-index:50;box-shadow:0 10px 35px rgba(35,45,65,.16)}
.empty{text-align:center;padding:38px 15px;color:var(--muted)}.empty b{display:block;color:var(--text);margin-bottom:5px}.auth-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 15% 10%,#e5ddff 0,transparent 32%),radial-gradient(circle at 90% 85%,#dff8f3 0,transparent 30%),#f4f7fb}.auth-card{width:min(410px,calc(100% - 28px));background:#fff;border:1px solid var(--line);border-radius:19px;padding:27px;box-shadow:0 25px 70px rgba(45,54,85,.13)}.brand.big{padding:0 0 20px}.auth-card h1{margin:5px 0;font-size:25px}.muted,.hint{color:var(--muted)}.hint{font-size:10px;line-height:1.5;margin-top:16px}.inline-form{display:flex;gap:8px;margin-bottom:12px}.inline-form .input{flex:1}
.script-brand-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.script-brand-card{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);background:#fafbfe;border-radius:12px}.script-brand-card b,.script-brand-card small{display:block;margin-top:5px}.script-brand-card small{color:var(--muted);font-size:10px}
.modal{position:fixed;inset:0;z-index:100;background:rgba(20,27,43,.32);display:grid;place-items:center;padding:20px}.modal[hidden]{display:none}.modal-box{width:min(760px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 90px rgba(30,40,65,.25)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:17px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}.modal-head h2{margin:4px 0 0;font-size:20px}.script-content{padding:17px}.script-block{padding:14px;border:1px solid var(--line);background:#fafbfe;border-radius:12px;margin-bottom:10px}.script-block label{margin:0 0 7px;color:var(--primary)}.script-block p{white-space:normal;line-height:1.7;margin:0;color:#30394a}.script-large{min-height:260px;line-height:1.6}.script-editor,.category-editor{width:min(720px,calc(100% - 28px))}.wa-preview{margin-top:10px;min-height:100px;padding:13px;background:#f0fbf6;border:1px solid #cbeedf;border-radius:11px;color:#254b3b;white-space:pre-wrap;line-height:1.55}.token-box{margin-top:12px;padding:11px;background:#f6f7fb;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11px;line-height:2}.token-box code{background:#fff;border:1px solid #dfe4ec;border-radius:5px;padding:3px 5px;color:#6544d8}.template-list{margin-top:25px}.template-list h3{font-size:15px}.template-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.template-row small{display:block;color:var(--muted);margin-top:4px;font-size:10px}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.search{width:210px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s;width:250px;box-shadow:20px 0 50px rgba(25,35,55,.18)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.menu{display:block;background:transparent;color:var(--text);border:0;font-size:20px;margin-right:10px}.topbar{padding:0 14px}.topbar>div:first-of-type{margin-right:auto}.content{padding:20px 13px 45px}.page-head{display:block}.page-head .btn{margin-top:12px}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:23px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.queue{align-items:flex-start;flex-direction:column}.queue .actions{width:100%}.queue .actions .btn{flex:1}.filters{display:block}.filter-form{margin-top:8px}.filter-form .select,.filter-form .btn{width:100%}.grow{min-width:0}.flash{left:13px;right:13px;top:78px}.inline-form{display:block}.inline-form .btn{width:100%;margin-top:8px}.script-brand-grid{grid-template-columns:1fr}.script-brand-card{align-items:flex-start;flex-direction:column}.script-brand-card .btn{width:100%}.template-row{align-items:flex-start;flex-direction:column}.template-row .btn{margin-top:5px}.top-right .search{display:none}}


/* ============================================================
   CALLFLOW V7 — SEMANTIC COLOR SYSTEM
   Every entity/function has a stable visual identity.
   ============================================================ */
:root{
  --cf-brand-roxonic:#7c3aed;
  --cf-brand-minlap:#2563eb;
  --cf-brand-gymcms:#f97316;
  --cf-brand-default:#64748b;

  --cf-lead-healthcare:#0d9488;
  --cf-lead-gym:#ea580c;
  --cf-lead-other:#64748b;

  --cf-user-sparsh:#2563eb;
  --cf-user-amit:#16a34a;
  --cf-user-roshan:#9333ea;
  --cf-user-default:#64748b;

  --cf-call:#2563eb;
  --cf-whatsapp:#16a34a;
  --cf-schedule:#f59e0b;
  --cf-followup:#f97316;
  --cf-interested:#16a34a;
  --cf-not-interested:#dc2626;
  --cf-callback:#9333ea;
  --cf-demo:#0891b2;
  --cf-meeting:#4f46e5;
  --cf-note:#64748b;
  --cf-edit:#2563eb;
  --cf-delete:#dc2626;
  --cf-save:#16a34a;
  --cf-add:#7c3aed;

  --cf-status-new:#2563eb;
  --cf-status-contacted:#0891b2;
  --cf-status-interested:#16a34a;
  --cf-status-followup:#f59e0b;
  --cf-status-demo:#9333ea;
  --cf-status-converted:#059669;
  --cf-status-not-interested:#dc2626;
  --cf-status-lost:#475569;

  --cf-priority-high:#dc2626;
  --cf-priority-medium:#f59e0b;
  --cf-priority-low:#16a34a;
}

/* Universal semantic buttons */
.cf-semantic{
  --cf-color:#64748b;
  --cf-soft:color-mix(in srgb,var(--cf-color) 10%,white);
  --cf-border:color-mix(in srgb,var(--cf-color) 28%,white);
  --cf-text:color-mix(in srgb,var(--cf-color) 82%,#111827);
  color:var(--cf-text)!important;
  background:var(--cf-soft)!important;
  border-color:var(--cf-border)!important;
}
.cf-semantic:hover,.cf-semantic.active{
  background:var(--cf-color)!important;
  color:#fff!important;
  border-color:var(--cf-color)!important;
}
.cf-semantic i,.cf-semantic svg{color:var(--cf-color);}
.cf-semantic:hover i,.cf-semantic:hover svg,.cf-semantic.active i,.cf-semantic.active svg{color:#fff;}

/* Entity chips */
.cf-brand-roxonic{--cf-color:var(--cf-brand-roxonic)}
.cf-brand-minlap{--cf-color:var(--cf-brand-minlap)}
.cf-brand-gymcms{--cf-color:var(--cf-brand-gymcms)}
.cf-brand-default{--cf-color:var(--cf-brand-default)}
.cf-lead-healthcare{--cf-color:var(--cf-lead-healthcare)}
.cf-lead-gym{--cf-color:var(--cf-lead-gym)}
.cf-lead-other{--cf-color:var(--cf-lead-other)}
.cf-user-sparsh{--cf-color:var(--cf-user-sparsh)}
.cf-user-amit{--cf-color:var(--cf-user-amit)}
.cf-user-roshan{--cf-color:var(--cf-user-roshan)}
.cf-user-default{--cf-color:var(--cf-user-default)}

/* Function colors */
.cf-fn-call{--cf-color:var(--cf-call)}
.cf-fn-whatsapp{--cf-color:var(--cf-whatsapp)}
.cf-fn-schedule{--cf-color:var(--cf-schedule)}
.cf-fn-followup{--cf-color:var(--cf-followup)}
.cf-fn-interested{--cf-color:var(--cf-interested)}
.cf-fn-not-interested{--cf-color:var(--cf-not-interested)}
.cf-fn-callback{--cf-color:var(--cf-callback)}
.cf-fn-demo{--cf-color:var(--cf-demo)}
.cf-fn-meeting{--cf-color:var(--cf-meeting)}
.cf-fn-note{--cf-color:var(--cf-note)}
.cf-fn-edit{--cf-color:var(--cf-edit)}
.cf-fn-delete{--cf-color:var(--cf-delete)}
.cf-fn-save{--cf-color:var(--cf-save)}
.cf-fn-add{--cf-color:var(--cf-add)}

/* Status and priority */
.cf-status-new{--cf-color:var(--cf-status-new)}
.cf-status-contacted{--cf-color:var(--cf-status-contacted)}
.cf-status-interested{--cf-color:var(--cf-status-interested)}
.cf-status-followup{--cf-color:var(--cf-status-followup)}
.cf-status-demo{--cf-color:var(--cf-status-demo)}
.cf-status-converted{--cf-color:var(--cf-status-converted)}
.cf-status-not-interested{--cf-color:var(--cf-status-not-interested)}
.cf-status-lost{--cf-color:var(--cf-status-lost)}
.cf-priority-high{--cf-color:var(--cf-priority-high)}
.cf-priority-medium{--cf-color:var(--cf-priority-medium)}
.cf-priority-low{--cf-color:var(--cf-priority-low)}

/* Make common existing badges inherit semantic variables */
.badge.cf-semantic,.chip.cf-semantic,.tag.cf-semantic,.filter-pill.cf-semantic{
  font-weight:700;
  border-width:1px;
}
.cf-color-dot{
  width:9px;height:9px;border-radius:999px;display:inline-block;
  background:var(--cf-color,#64748b);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--cf-color,#64748b) 12%,transparent);
  flex:0 0 auto;
}
.cf-color-icon{
  width:34px;height:34px;border-radius:11px;display:inline-flex;
  align-items:center;justify-content:center;
  color:var(--cf-color,#64748b);
  background:color-mix(in srgb,var(--cf-color,#64748b) 11%,white);
  border:1px solid color-mix(in srgb,var(--cf-color,#64748b) 22%,white);
}
.cf-color-icon.solid{color:#fff;background:var(--cf-color,#64748b);border-color:var(--cf-color,#64748b);}

/* Existing buttons get semantic identity through optional data-color */
[data-cf-color]{
  --cf-color:var(--cf-brand-default);
}
[data-cf-color="call"]{--cf-color:var(--cf-call)}
[data-cf-color="whatsapp"]{--cf-color:var(--cf-whatsapp)}
[data-cf-color="schedule"]{--cf-color:var(--cf-schedule)}
[data-cf-color="followup"]{--cf-color:var(--cf-followup)}
[data-cf-color="interested"]{--cf-color:var(--cf-interested)}
[data-cf-color="not-interested"]{--cf-color:var(--cf-not-interested)}
[data-cf-color="callback"]{--cf-color:var(--cf-callback)}
[data-cf-color="demo"]{--cf-color:var(--cf-demo)}
[data-cf-color="meeting"]{--cf-color:var(--cf-meeting)}
[data-cf-color="edit"]{--cf-color:var(--cf-edit)}
[data-cf-color="delete"]{--cf-color:var(--cf-delete)}
[data-cf-color="save"]{--cf-color:var(--cf-save)}
[data-cf-color="add"]{--cf-color:var(--cf-add)}


/* ============================================================
   CALLFLOW V8 — FLAT + CRISP UI
   Flat surfaces, sharp hierarchy, restrained borders,
   minimal shadows, compact controls and clean spacing.
   ============================================================ */
:root{
  --cf-radius-xs:6px;
  --cf-radius-sm:8px;
  --cf-radius-md:10px;
  --cf-radius-lg:12px;
  --cf-shadow-none:none;
  --cf-shadow-soft:0 1px 2px rgba(15,23,42,.04);
  --cf-border:#e2e8f0;
  --cf-border-strong:#cbd5e1;
  --cf-surface:#ffffff;
  --cf-surface-2:#f8fafc;
  --cf-page:#f1f5f9;
  --cf-text:#0f172a;
  --cf-muted:#64748b;
}

/* Remove the "floating / glossy" feel globally */
*{box-shadow:none!important}
html,body{background:var(--cf-page)!important;color:var(--cf-text)}
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Flat cards, panels and containers */
.card,.panel,.box,.stat-card,.dashboard-card,.lead-card,.table-card,
.modal-content,.dropdown-menu,.filter-bar,.filters,.section-card{
  background:var(--cf-surface)!important;
  border:1px solid var(--cf-border)!important;
  border-radius:var(--cf-radius-md)!important;
}

/* No decorative gradients */
[class*="gradient"],.gradient,.hero,.hero-card{
  background-image:none!important;
}

/* Crisp navigation */
.sidebar,.topbar,.navbar,.header,.app-header{
  border-color:var(--cf-border)!important;
  background:var(--cf-surface)!important;
}

/* Compact, consistent buttons */
button,.btn,a.btn,.button{
  border-radius:var(--cf-radius-sm)!important;
  font-weight:700!important;
  transition:background-color .12s ease,color .12s ease,border-color .12s ease!important;
}
button:hover,.btn:hover,a.btn:hover,.button:hover{transform:none!important}

/* Inputs */
input,select,textarea,.form-control,.form-select{
  border:1px solid var(--cf-border-strong)!important;
  border-radius:var(--cf-radius-sm)!important;
  background:#fff!important;
  box-shadow:none!important;
}
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus{
  outline:none!important;
  border-color:#94a3b8!important;
  box-shadow:0 0 0 2px #e2e8f0!important;
}

/* Tables */
table{border-collapse:separate!important;border-spacing:0!important}
th{
  background:var(--cf-surface-2)!important;
  color:#475569!important;
  border-bottom:1px solid var(--cf-border)!important;
  font-size:.78rem!important;
  text-transform:uppercase;
  letter-spacing:.04em;
}
td{border-bottom:1px solid #edf2f7!important}
tr:last-child td{border-bottom:0!important}
tbody tr:hover{background:#f8fafc!important}

/* Flat navigation states */
.nav-link,.menu-item{
  border-radius:var(--cf-radius-sm)!important;
}
.nav-link:hover,.menu-item:hover{
  background:#f1f5f9!important;
}
.nav-link.active,.menu-item.active{
  box-shadow:none!important;
}

/* Flat badges/chips */
.badge,.chip,.tag,.filter-pill{
  border-radius:999px!important;
  box-shadow:none!important;
  font-weight:700!important;
}

/* Stats: clean blocks instead of floating cards */
.stat-card{
  border-top-width:3px!important;
}
.stat-card:hover,.card:hover,.panel:hover,.lead-card:hover{
  transform:none!important;
}

/* Icon containers stay crisp */
.cf-color-icon{
  border-radius:8px!important;
}

/* Modals/dropdowns */
.modal,.dropdown,.popover{
  filter:none!important;
}
.dropdown-menu,.popover{
  border:1px solid var(--cf-border)!important;
  border-radius:var(--cf-radius-md)!important;
}

/* Alerts/toasts */
.alert,.toast,.notification{
  border:1px solid var(--cf-border)!important;
  border-radius:var(--cf-radius-sm)!important;
}

/* Scrollbars */
*{
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}

/* Mobile: preserve crisp density */
@media (max-width:768px){
  .card,.panel,.box,.stat-card,.dashboard-card,.lead-card,.table-card{
    border-radius:var(--cf-radius-sm)!important;
  }
  button,.btn,a.btn{min-height:40px}
}


/* ============================================================
   CALLFLOW V9 — LIGHT + COLORFUL FLAT THEME
   Bright SaaS-style interface with crisp surfaces and
   strong semantic color accents.
   ============================================================ */
:root{
  --cf-page:#f7f9fc;
  --cf-surface:#ffffff;
  --cf-surface-2:#fbfcff;
  --cf-border:#e7eaf0;
  --cf-border-strong:#d5dbea;
  --cf-text:#182230;
  --cf-muted:#667085;

  --cf-brand-roxonic:#7c3aed;
  --cf-brand-minlap:#2563eb;
  --cf-brand-gymcms:#f97316;
  --cf-brand-default:#64748b;

  --cf-lead-healthcare:#0f9f91;
  --cf-lead-gym:#f97316;
  --cf-lead-other:#64748b;

  --cf-user-sparsh:#2563eb;
  --cf-user-amit:#16a34a;
  --cf-user-roshan:#9333ea;
  --cf-user-default:#64748b;

  --cf-call:#2563eb;
  --cf-whatsapp:#16a34a;
  --cf-schedule:#f59e0b;
  --cf-followup:#f97316;
  --cf-interested:#16a34a;
  --cf-not-interested:#ef4444;
  --cf-callback:#9333ea;
  --cf-demo:#0891b2;
  --cf-meeting:#4f46e5;
  --cf-note:#64748b;
  --cf-edit:#2563eb;
  --cf-delete:#ef4444;
  --cf-save:#16a34a;
  --cf-add:#7c3aed;

  --cf-status-new:#2563eb;
  --cf-status-contacted:#0891b2;
  --cf-status-interested:#16a34a;
  --cf-status-followup:#f59e0b;
  --cf-status-demo:#9333ea;
  --cf-status-converted:#059669;
  --cf-status-not-interested:#ef4444;
  --cf-status-lost:#475569;
}

/* Bright page + flat surfaces */
html,body{
  background:var(--cf-page)!important;
  color:var(--cf-text)!important;
}
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Keep surfaces flat, but use crisp borders */
.card,.panel,.box,.stat-card,.dashboard-card,.lead-card,.table-card,
.modal-content,.dropdown-menu,.filter-bar,.filters,.section-card{
  background:#fff!important;
  border:1px solid var(--cf-border)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}

/* Colorful top/side accents */
.sidebar,.topbar,.navbar,.header,.app-header{
  background:#fff!important;
  border-color:var(--cf-border)!important;
}
.sidebar .nav-link.active,.navbar .nav-link.active{
  background:#f3efff!important;
  color:#6d28d9!important;
}

/* Dashboard cards: each stat card gets a distinct accent */
.stat-card{
  border-top:3px solid #7c3aed!important;
  background:#fff!important;
}
.stat-card:nth-child(2){border-top-color:#2563eb!important}
.stat-card:nth-child(3){border-top-color:#16a34a!important}
.stat-card:nth-child(4){border-top-color:#f97316!important}
.stat-card:nth-child(5){border-top-color:#eab308!important}
.stat-card:nth-child(6){border-top-color:#ec4899!important}

/* Buttons: bright semantic flat colors */
button,.btn,a.btn,.button{
  border-radius:8px!important;
  font-weight:700!important;
  box-shadow:none!important;
  transform:none!important;
}
button:hover,.btn:hover,a.btn:hover,.button:hover{
  transform:none!important;
}

/* Semantic color utility */
.cf-semantic{
  --cf-color:#64748b;
  --cf-soft:color-mix(in srgb,var(--cf-color) 9%,#fff);
  --cf-border:color-mix(in srgb,var(--cf-color) 25%,#fff);
  --cf-text:color-mix(in srgb,var(--cf-color) 82%,#172033);
  color:var(--cf-text)!important;
  background:var(--cf-soft)!important;
  border-color:var(--cf-border)!important;
}
.cf-semantic:hover,.cf-semantic.active{
  background:var(--cf-color)!important;
  color:#fff!important;
  border-color:var(--cf-color)!important;
}
.cf-semantic i,.cf-semantic svg{color:var(--cf-color)!important}
.cf-semantic:hover i,.cf-semantic:hover svg,
.cf-semantic.active i,.cf-semantic.active svg{color:#fff!important}

/* Colorful entity classes */
.cf-brand-roxonic{--cf-color:var(--cf-brand-roxonic)}
.cf-brand-minlap{--cf-color:var(--cf-brand-minlap)}
.cf-brand-gymcms{--cf-color:var(--cf-brand-gymcms)}
.cf-brand-default{--cf-color:var(--cf-brand-default)}
.cf-lead-healthcare{--cf-color:var(--cf-lead-healthcare)}
.cf-lead-gym{--cf-color:var(--cf-lead-gym)}
.cf-lead-other{--cf-color:var(--cf-lead-other)}
.cf-user-sparsh{--cf-color:var(--cf-user-sparsh)}
.cf-user-amit{--cf-color:var(--cf-user-amit)}
.cf-user-roshan{--cf-color:var(--cf-user-roshan)}
.cf-user-default{--cf-color:var(--cf-user-default)}

.cf-fn-call{--cf-color:var(--cf-call)}
.cf-fn-whatsapp{--cf-color:var(--cf-whatsapp)}
.cf-fn-schedule{--cf-color:var(--cf-schedule)}
.cf-fn-followup{--cf-color:var(--cf-followup)}
.cf-fn-interested{--cf-color:var(--cf-interested)}
.cf-fn-not-interested{--cf-color:var(--cf-not-interested)}
.cf-fn-callback{--cf-color:var(--cf-callback)}
.cf-fn-demo{--cf-color:var(--cf-demo)}
.cf-fn-meeting{--cf-color:var(--cf-meeting)}
.cf-fn-note{--cf-color:var(--cf-note)}
.cf-fn-edit{--cf-color:var(--cf-edit)}
.cf-fn-delete{--cf-color:var(--cf-delete)}
.cf-fn-save{--cf-color:var(--cf-save)}
.cf-fn-add{--cf-color:var(--cf-add)}

.cf-status-new{--cf-color:var(--cf-status-new)}
.cf-status-contacted{--cf-color:var(--cf-status-contacted)}
.cf-status-interested{--cf-color:var(--cf-status-interested)}
.cf-status-followup{--cf-color:var(--cf-status-followup)}
.cf-status-demo{--cf-color:var(--cf-status-demo)}
.cf-status-converted{--cf-color:var(--cf-status-converted)}
.cf-status-not-interested{--cf-color:var(--cf-status-not-interested)}
.cf-status-lost{--cf-color:var(--cf-status-lost)}

.cf-priority-high{--cf-color:#ef4444}
.cf-priority-medium{--cf-color:#f59e0b}
.cf-priority-low{--cf-color:#16a34a}

/* Make colored badges look intentional, not glossy */
.badge.cf-semantic,.chip.cf-semantic,.tag.cf-semantic,.filter-pill.cf-semantic{
  border-width:1px!important;
  font-weight:700!important;
  box-shadow:none!important;
}

/* Color icon tiles */
.cf-color-icon{
  border-radius:8px!important;
  background:color-mix(in srgb,var(--cf-color,#64748b) 10%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--cf-color,#64748b) 22%,#fff)!important;
  color:var(--cf-color,#64748b)!important;
}
.cf-color-icon.solid{
  background:var(--cf-color,#64748b)!important;
  color:#fff!important;
}

/* Forms remain clean white */
input,select,textarea,.form-control,.form-select{
  background:#fff!important;
  border:1px solid var(--cf-border-strong)!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus{
  border-color:#a5b4fc!important;
  box-shadow:0 0 0 3px #eef2ff!important;
}

/* Table header gets a subtle cool tint */
th{
  background:#f8faff!important;
  color:#475467!important;
  border-bottom:1px solid var(--cf-border)!important;
}
tbody tr:hover{background:#fafbff!important}

/* Flat colored section headings */
.section-title i,.card-title i,.panel-title i{
  color:#7c3aed;
}

/* Crisp chips */
.badge,.chip,.tag,.filter-pill{
  border-radius:999px!important;
}

/* No gradients anywhere in the new theme */
*{
  background-image:none!important;
}


/* ============================================================
   CALLFLOW V11 — LIGHT ONLY / CRISP SaaS
   Explicit light-mode override. No dark surfaces anywhere.
   ============================================================ */
:root{
  color-scheme:light;
  --cf-page:#f5f7fb;
  --cf-surface:#ffffff;
  --cf-surface-2:#f8fafc;
  --cf-border:#e4e8ef;
  --cf-border-strong:#d0d7e2;
  --cf-text:#172033;
  --cf-muted:#667085;
}
html,body{
  background:#f5f7fb!important;
  color:#172033!important;
}
body,.app,.app-shell,.main,.main-content,.content,.page-content{
  background:#f5f7fb!important;
  color:#172033!important;
}
header,.header,.topbar,.navbar,.app-header,.sidebar,.aside,.menu{
  background:#fff!important;
  color:#172033!important;
  border-color:#e4e8ef!important;
}
.card,.panel,.box,.stat-card,.dashboard-card,.lead-card,.table-card,
.section-card,.modal-content,.dropdown-menu,.popover,.filter-bar,.filters,
.form-card,.content-card,.table-wrap{
  background:#fff!important;
  color:#172033!important;
  border:1px solid #e4e8ef!important;
  box-shadow:none!important;
}
h1,h2,h3,h4,h5,h6,p,label,td,th,span,small{
  color:inherit;
}
.text-muted,.muted,.help-text,small{color:#667085!important}
input,select,textarea,.form-control,.form-select{
  background:#fff!important;
  color:#172033!important;
  border:1px solid #d0d7e2!important;
}
input::placeholder,textarea::placeholder{color:#98a2b3!important}
button,.btn,a.btn,.button{
  box-shadow:none!important;
  text-shadow:none!important;
  min-height:38px;
  border-radius:8px!important;
  font-weight:700!important;
}
.btn-primary,.button-primary,.primary{
  background:#2563eb!important;
  color:#fff!important;
  border:1px solid #2563eb!important;
}
.btn-primary:hover,.button-primary:hover,.primary:hover{
  background:#1d4ed8!important;
}
.btn-secondary,.button-secondary,.secondary{
  background:#fff!important;
  color:#344054!important;
  border:1px solid #d0d7e2!important;
}
.btn-secondary:hover,.button-secondary:hover,.secondary:hover{
  background:#f8fafc!important;
}
.nav-link,.menu-item{
  color:#475467!important;
}
.nav-link:hover,.menu-item:hover{
  background:#f5f7fb!important;
  color:#172033!important;
}
.nav-link.active,.menu-item.active{
  background:#eef2ff!important;
  color:#4f46e5!important;
}
th{background:#f8fafc!important;color:#475467!important}
tbody tr:hover{background:#fafbff!important}
.badge,.chip,.tag,.filter-pill{box-shadow:none!important}

/* Prevent dark-theme classes/media rules from overriding the light UI */
.dark,.dark-mode,.theme-dark,[data-theme="dark"],[data-mode="dark"]{
  background:#f5f7fb!important;
  color:#172033!important;
}
@media (prefers-color-scheme:dark){
  html,body,.app,.app-shell,.main,.main-content,.content,.page-content{
    background:#f5f7fb!important;
    color:#172033!important;
  }
  .card,.panel,.box,.stat-card,.dashboard-card,.lead-card,.table-card,
  .section-card,.modal-content,.dropdown-menu,.popover{
    background:#fff!important;
    color:#172033!important;
  }
}
