/* ==========================================================================
   Total Tint Solutions - Client Dashboard visual layer
   IMPORTANT: This file only ADDS new classes for styling.
   It does not rename/remove any existing WordPress/JS-dependent classes.
   Enqueue this AFTER main.min.css so it can layer on top safely.
   ========================================================================== */
:root{
  --shell:#131418;
  --shell-2:#1c1e24;
  --orange:#f7941d;
  --orange-soft:#ffb35c;
  --canvas:#eef1f7;
  --card:#ffffff;
  --border:#e8eaf0;
  --text:#15161a;
  --muted:#8a8d98;

  --c-total:#3b82f6;   --c-total-bg:#eaf1ff;
  --c-pending:#f5a623; --c-pending-bg:#fff3df;
  --c-booked:#1fb27a;  --c-booked-bg:#e3f8ef;
  --c-lost:#ef4d6b;    --c-lost-bg:#fdeaee;
}

/* Scope everything to the clients dashboard body so it never leaks to other WP pages */
body.page-template-page-clients-dashboard,
body.clients-dashboard-body{
  margin:0;
  font-family:'Inter',Arial,sans-serif;
  background:var(--canvas);
  color:var(--text);
}
body.page-template-page-clients-dashboard h1,
body.page-template-page-clients-dashboard h2,
body.page-template-page-clients-dashboard .num{
  font-family:'Poppins',sans-serif;
}

/* ---------- App shell ---------- */
.all_panel.app{ display:flex; min-height:100vh; }

/* ---------- SIDEBAR ---------- */
.panel__sidebar-cont.sidebar{
  width:262px;
  background:var(--shell);
  color:#e7e8ec;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
}
.panel__sidebar-logo.logo-box{
  padding:24px 22px 20px;
  display:flex;
  align-items:center;
  gap:12px;
}
.panel__sidebar-logo.logo-box .b-logo__link-h{
  display:block;
  width:100%;
  min-height:40px;
}

.panel__sidebar-info.profile-box{
  margin:4px 18px 14px;
  padding:14px;
  border-radius:14px;
  background:var(--shell-2);
  display:flex;
  align-items:center;
  gap:12px;
}
.panel__sidebar-photo.avatar{
  width:42px;height:42px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid var(--orange);
  flex-shrink:0;
}
.panel__sidebar-photo.avatar img{ width:100%; height:100%; object-fit:cover; }
.panel__sidebar-name.profile-name{ font-weight:600; font-size:14px; color:#fff; margin:0; }
.panel__sidebar-information.profile-role{ font-size:11.5px; color:#9a9ca5; margin:2px 0 0; }

.panel__sidebar-locs.branch-select{ margin:0 18px 18px; }
.panel__sidebar-locs.branch-select select{
  width:100%;
  padding:10px 12px;
  border:1px solid #2c2e36;
  border-radius:10px;
  font-size:12.5px;
  font-family:'Inter',sans-serif;
  color:#d7d8dd;
  background:var(--shell-2);
  appearance:none;
}

.panel__sidebar-navi.menu-wrap{ padding:4px 14px 20px; overflow-y:auto; }
.panel__sidebar-navi.menu-wrap ul.cd-nav{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.panel__sidebar-navi.menu-wrap ul.cd-nav li{ margin:0; }
.panel__sidebar-navi.menu-wrap ul.cd-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 14px;
  text-decoration:none;
  color:#9d9fa8;
  font-size:13.5px;
  font-weight:500;
  border-radius:10px;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.panel__sidebar-navi.menu-wrap ul.cd-nav li.current-menu-item > a,
.panel__sidebar-navi.menu-wrap ul.cd-nav a.active{
  background:linear-gradient(90deg, rgba(247,148,29,0.16), rgba(247,148,29,0.02));
  color:#fff;
  font-weight:600;
  box-shadow:inset 3px 0 0 var(--orange);
}
.panel__sidebar-navi.menu-wrap ul.cd-nav a:hover{ background:#1e2027; color:#e7e8ec; transform:translateX(2px); }
.panel__sidebar-navi.menu-wrap .badge{
  background:var(--c-lost); color:#fff; font-size:10.5px; font-weight:700;
  padding:2px 7px; border-radius:20px;
}

/* ---------- MAIN COLUMN ---------- */
.main{ flex:1; display:flex; flex-direction:column; min-width:0; }

/* ---------- TOPBAR (was panel__header) ---------- */
.panel__header.d_flex.topbar{
  background:var(--shell);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  height:68px;
  flex-shrink:0;
  border-bottom:1px solid #24262d;
}
.panel__content-header-title.topbar-title{
  font-size:17px; font-weight:600; margin:0; color:#f2f2f3;
}
.panel__content.content {
  width:100%;
}
.topbar-right{ display:flex; align-items:center; gap:16px; }

.add-new-lead.add-lead-btn{
  border:none;
  background:linear-gradient(135deg,var(--orange-soft),var(--orange));
  color:#191100 !important;
  padding:10px 20px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.4px;
  border-radius:9px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  box-shadow:0 6px 16px rgba(247,148,29,0.35);
  transition:transform .15s ease, box-shadow .15s ease;
}
.add-new-lead.add-lead-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(247,148,29,0.45); }

.icon_bl.top-icon-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:19px; height:19px;
  color:#c7c8ce;
  cursor:pointer;
}
.icon_bl.top-icon-wrap i{ font-size:17px; }
.icon_bl.top-icon-wrap:hover{ color:#fff; }
.icon_bl.top-icon-wrap .count-pill{
  position:absolute; top:-10px; right:-12px;
  background:var(--c-lost); color:#fff;
  font-size:10px; font-weight:700;
  padding:1px 5px; border-radius:8px; line-height:1.4;
}

.b-main-nav__search.top-icon-wrap{ color:#c7c8ce; }

/* ---------- CONTENT ---------- */
.panel__content.content{ flex:1; }
.panel__content-txt{ padding:28px 32px 56px; }

/* stat cards */
.panel__leads-stats.stat-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:16px;
}
.panel__leads-stats.stat-cards ul{
  display:contents;
  list-style:none; margin:0; padding:0;
}
.panel__leads-stats.stat-cards li{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 1px 2px rgba(20,20,30,0.03);
  transition:transform .18s ease, box-shadow .18s ease;
}
.panel__leads-stats.stat-cards li:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(20,20,30,0.08); }
.panel__leads-stats.stat-cards .l-num{ font-size:25px; font-weight:700; color:#161616; line-height:1; }
.panel__leads-stats.stat-cards label{
  display:block;
  font-size:11px; letter-spacing:0.6px; color:var(--muted);
  font-weight:600; margin-top:6px; text-transform:uppercase;
}
.panel__leads-stats.stat-cards .stat-icon{
  width:44px;height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.panel__leads-stats.stat-cards .stat-icon svg{ width:20px;height:20px; }
.panel__leads-stats.stat-cards li.s-l-total .stat-icon{ background:var(--c-total-bg); color:var(--c-total); }
.panel__leads-stats.stat-cards li.s-p-total .stat-icon{ background:var(--c-pending-bg); color:var(--c-pending); }
.panel__leads-stats.stat-cards li.s-l-booked .stat-icon{ background:var(--c-booked-bg); color:var(--c-booked); }
.panel__leads-stats.stat-cards li.s-l-lost .stat-icon{ background:var(--c-lost-bg); color:var(--c-lost); }

/* breakdown bar */
.breakdown{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 22px;
  margin-bottom:24px;
}
.breakdown-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.breakdown-head span.title{ font-size:12px; font-weight:700; letter-spacing:0.6px; color:#555; }
.breakdown-head span.sub{ font-size:11.5px; color:var(--muted); }
.bar-track{ display:flex; width:100%; height:12px; border-radius:8px; overflow:hidden; background:#f0f1f5; }
.bar-seg{ height:100%; transition:width 1s cubic-bezier(.2,.7,.3,1); }
.bar-seg.pending{ background:var(--c-pending); }
.bar-seg.booked{ background:var(--c-booked); }
.bar-seg.lost{ background:var(--c-lost); }
.bar-legend{ display:flex; gap:22px; margin-top:12px; flex-wrap:wrap; }
.bar-legend .item{ display:flex; align-items:center; gap:7px; font-size:12px; color:#555; }
.bar-legend .dot{ width:9px; height:9px; border-radius:50%; display:inline-block; }

/* table panel (was panel__content-table) */
.panel__content-table.panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 24px 10px;
}
.panel__content-title{
  font-size:14px; letter-spacing:0.6px; font-weight:700; color:#222;
  margin:0 0 16px; text-transform:uppercase;
}
.panel__content-table.panel hr{ display:none; }

table.leads-list-table.leads{ width:100%; border-collapse:collapse; font-size:13.5px; }
table.leads-list-table.leads tr.highlight{
  text-align:left;
}
table.leads-list-table.leads tr.highlight td{
  padding:11px 10px; font-weight:600; color:#8a8d98;
  font-size:11.5px; letter-spacing:0.5px; text-transform:uppercase;
  border-bottom:1px solid var(--border); white-space:nowrap;
}
table.leads-list-table.leads tbody td{
  padding:12px 10px; border-bottom:1px solid #f2f3f6; color:#333; white-space:nowrap;
}
table.leads-list-table.leads tbody tr.l-row{ transition:background .12s ease; }
table.leads-list-table.leads tbody tr.l-row:hover{ background:#f8f9fc; }
table.leads-list-table.leads td.l-name a{ color:#1a56db; text-decoration:none; font-weight:500; }
table.leads-list-table.leads td.l-name a:hover{ text-decoration:underline; }

.pill{ display:inline-block; padding:3px 10px; border-radius:20px; font-size:11.5px; font-weight:600; }
.pill.yes{ background:var(--c-booked-bg); color:var(--c-booked); }
.pill.no{ background:#f1f2f5; color:#9a9ca5; }
.pill.pending{ background:var(--c-pending-bg); color:var(--c-pending); }

/* footer */
.panel__content-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0; margin-top:20px; border-top:1px solid var(--border);
  font-size:12px; color:var(--muted);
}

@media(max-width:1100px){
  .panel__leads-stats.stat-cards{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:760px){
  .panel__sidebar-cont.sidebar{ display:none; }
  .panel__content-txt{ padding:20px 16px 40px; }
  .panel__leads-stats.stat-cards{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Lead forms (used by BOTH the "Add New Lead" modal and the per-row edit
   form inside loop-leads.php - both share the same .l-form/.l-f-row classes)
   No class names/attributes touched here, purely cosmetic.
   ========================================================================== */
.panel__add-new-lead,
.lead-data-wrap{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 24px;
}
.panel__add-new-lead{
  position:relative;
  max-width:720px;
  margin:0 auto 24px;
  box-shadow:0 20px 45px rgba(20,20,30,0.14);
}
.l-form{ margin-bottom:4px; }
.l-f-row{ margin-bottom:14px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.l-f-row label{
  flex:0 0 190px;
  font-size:12.5px; font-weight:600; color:#444; letter-spacing:0.2px;
  font-family:'Inter',Arial,sans-serif;
}
.l-f-row input[type="text"],
.l-f-row textarea,
.l-f-row select{
  flex:1 1 260px;
  min-width:180px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:9px;
  font-size:13px;
  font-family:'Inter',Arial,sans-serif;
  color:var(--text);
  background:#fbfbfd;
}
.l-f-row textarea{ min-height:70px; resize:vertical; }
.l-f-row input[type="text"]:focus,
.l-f-row textarea:focus,
.l-f-row select:focus{
  outline:none;
  border-color:var(--orange);
  background:#fff;
}
.l-f-row .f-note{
  flex-basis:100%;
  font-size:11px;
  color:var(--muted);
}
.l-f-row .f-note span{ color:var(--c-lost); font-weight:600; }
.l-f-row.g-note{ font-size:11.5px; color:var(--muted); }

.l-form hr{ border:none; border-top:1px solid var(--border); margin:16px 0; }

.button,
input[type="submit"].button,
input[type="button"].button{
  border:none;
  background:linear-gradient(135deg,var(--orange-soft),var(--orange));
  color:#191100;
  padding:10px 20px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.4px;
  border-radius:9px;
  cursor:pointer;
  margin-right:8px;
}
.button.disabled,
input.button.disabled,
input.button:disabled{
  background:#e6e7ec;
  color:#9a9ca5;
  cursor:not-allowed;
  box-shadow:none;
}
.lead-data-wrap h3.l-name{ margin-top:0; font-size:16px; }
.lead-data-wrap .l-fields{ list-style:none; padding:0; margin:0 0 10px; color:var(--muted); font-size:12px; }

nav.menu{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding:4px 14px 20px;
    overflow-y:auto;
  }
  nav.menu a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:11px 14px;
    text-decoration:none;
    color:#9d9fa8;
    font-size:13.5px;
    font-weight:500;
    border-radius:10px;
    transition:background .15s ease, color .15s ease, transform .15s ease;
  }
  nav.menu a .label-row{display:flex;align-items:center;gap:11px;}
  nav.menu a svg{width:16px;height:16px;flex-shrink:0;opacity:.85;}
  nav.menu a.active{
    background:linear-gradient(90deg, rgba(247,148,29,0.16), rgba(247,148,29,0.02));
    color:#fff;
    font-weight:600;
    box-shadow:inset 3px 0 0 var(--orange);
  }
  nav.menu a:hover{ background:#1e2027; color:#e7e8ec; transform:translateX(2px); }
  .badge{
    background:var(--c-lost);
    color:#fff;
    font-size:10.5px;
    font-weight:700;
    padding:2px 7px;
    border-radius:20px;
  }

  .sidebar{
    width:262px;
    background:var(--shell);
    color:#e7e8ec;
    display:flex;
    flex-direction:column;
    flex-shrink:0;
  }
  .logo-box{
    padding:24px 22px 20px;
    display:flex;
    align-items:center;
    gap:12px;
  }
  .logo-mark{
    width:40px;height:40px;
    background:linear-gradient(135deg,var(--orange-soft) 0%, var(--orange) 55%, #4a4a4a 55%, #2b2b2b 100%);
    border-radius:9px;
    flex-shrink:0;
    box-shadow:0 6px 14px rgba(247,148,29,0.28);
  }
  .logo-text .t1{
    font-weight:700;
    font-size:15.5px;
    letter-spacing:0.5px;
    color:#fff;
  }
  .logo-text .t1 span{color:var(--orange);}
  .logo-text .t2{
    font-size:9px;
    letter-spacing:3px;
    color:#83858e;
    font-weight:600;
    margin-top:3px;
  }
  html {
    margin-top: 0px !important;
  }
  .lead-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
  }
  .lead-form-message.success {
    background: #e6f7e6;
    color: #1a7a1a;
    border: 1px solid #b3e0b3;
  }
  .lead-form-message.error {
    background: #fdeaea;
    color: #b02a2a;
    border: 1px solid #f3b3b3;
  }
  .logo-box .site-logo-img,
  .logo-box img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .leads-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
  }

  .leads-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    transition: all 0.15s ease;
  }

  .leads-pagination a.page-link:hover {
    background: #e8e8e8;
  }

  .leads-pagination .page-num.active {
    background: #f7941d; /* aapke theme ka orange, adjust karlo brand color se */
    color: #fff;
  }

  .leads-pagination .page-dots {
    background: transparent;
    color: #999;
    min-width: auto;
  }

  .leads-pagination .page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .leads-pagination .pagination-info {
    margin-left: auto;
    font-size: 13px;
    color: #888;
  }

  @media (max-width: 600px) {
    .leads-pagination .pagination-info {
      margin-left: 0;
      width: 100%;
      order: 10;
      margin-top: 8px;
    }
  }

  /* Common base for all stat cards */
  .panel__leads-stats.stat-cards li,
  .panel__leads-stats ul li {
    /* border-radius: 10px; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .panel__leads-stats.stat-cards li:hover,
  .panel__leads-stats ul li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  }

  /* TOTAL LEADS — cool blue/teal */
  li.s-l-total {
    background: linear-gradient(90deg, rgb(255 180 93), rgba(247, 148, 29, 0.02)) !important;
    border-left-color: #4facfe;
  }
  li.s-l-total .stat-icon {
    color: #2196d9;
  }

  /* TOTAL PENDING — warm amber/orange */
  li.s-p-total {
    background: linear-gradient(135deg, rgba(247, 148, 29, 0.18), rgba(247, 148, 29, 0.03)) !important;
    border-left-color: #f7941d;
  }
  li.s-p-total .stat-icon {
    color: #f7941d;
  }

  /* TOTAL BOOKED — fresh green */
  li.s-l-booked {
    background: linear-gradient(135deg, rgba(46, 196, 113, 0.18), rgba(46, 196, 113, 0.03)) !important;
    border-left-color: #2ec471;
  }
  li.s-l-booked .stat-icon {
    color: #1fa85c;
  }

  /* LEADS LOST — soft red */
  li.s-l-lost {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.03)) !important;
    border-left-color: #ef4444;
  }
  li.s-l-lost .stat-icon {
    color: #ef4444;
  }


  .settings-wrap {
    max-width: 80%;
    margin: 0 auto;
    padding: 10px 0 40px;
  }

/* Success message */
.settings-updated {
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, rgba(46, 196, 113, 0.15), rgba(46, 196, 113, 0.04));
	border-left: 4px solid #2ec471;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-updated .su-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: #2ec471;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	flex-shrink: 0;
}

.settings-updated p {
	margin: 0;
	color: #1a7a44;
	font-weight: 600;
}

/* Card-style boxes */
.settings-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 26px 28px;
	margin-bottom: 24px;
	border: 1px solid #eef0f2;
}

.settings-box h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid #f7941d;
}

.settings-box .sb-icon {
	font-size: 20px;
}

/* Form rows */
.l-settings-row {
	margin-bottom: 18px;
}

.l-settings-row:last-child {
	margin-bottom: 0;
}

.l-settings-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 6px;
}

.l-settings-row input[type="text"],
.l-settings-row input[type="password"],
.l-settings-row input[type="email"] {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #dfe3e8;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	background: #fafbfc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-sizing: border-box;
}

.l-settings-row input[type="text"]:focus,
.l-settings-row input[type="password"]:focus,
.l-settings-row input[type="email"]:focus {
	outline: none;
	border-color: #f7941d;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
}

.settings-box .f-note {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	color: #999;
	font-style: italic;
}

/* Submit button */
.settings-submit-row {
	margin-bottom: 0;
}

.settings-submit-row .button {
	background: linear-gradient(135deg, #f7941d, #f5a623);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	border: none;
	padding: 13px 32px;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(247, 148, 29, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-submit-row .button:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(247, 148, 29, 0.45);
}

.settings-submit-row .button:active {
	transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
	.settings-box {
		padding: 20px;
	}
	.settings-submit-row .button {
		width: 100%;
	}
}