/* =================== Glee Call theme v4: soft, rounded "Figma" style. Loaded last, overrides app/app2/webphone. =================== */
[hidden] { display: none !important; }
:root {
  --bg: #f3f6fb;
  --border: #e9eef5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .07);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 32px -8px rgba(16, 24, 40, .12);
}
body { background: radial-gradient(1200px 500px at 85% -10%, #e8efff 0%, transparent 60%), var(--bg); background-attachment: fixed; letter-spacing: -.005em; }

/* cards */
.card { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); padding: 20px; }
.card-head h3, .page-head h1 { letter-spacing: -.02em; }
.page-head h1 { font-size: 24px; }
.section-title { letter-spacing: .04em; }

/* stat cards: rounded icon tiles with soft colour glow */
.stat { align-items: center; gap: 16px; transition: transform .15s, box-shadow .15s; }
.card.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat .ic, .mini-stat .ic { width: 52px; height: 52px; border-radius: 16px; }
.stat .ic svg { width: 24px; height: 24px; }
.stat .val { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin: 2px 0; }
.stat .label { font-size: 12.5px; font-weight: 600; color: #64748b; text-transform: none; }
.mini-stat .ic { width: 44px; height: 44px; border-radius: 14px; }
.bg-green { background: linear-gradient(135deg, #34d399, #16a34a); box-shadow: 0 8px 18px -6px rgba(22, 163, 74, .55); }
.bg-blue { background: linear-gradient(135deg, #60a5fa, #1d5bf0); box-shadow: 0 8px 18px -6px rgba(29, 91, 240, .55); }
.bg-red { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 8px 18px -6px rgba(225, 29, 72, .5); }
.bg-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 8px 18px -6px rgba(124, 58, 237, .5); }
.bg-amber { background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: 0 8px 18px -6px rgba(245, 158, 11, .55); }
.bg-cyan { background: linear-gradient(135deg, #67e8f9, #0891b2); box-shadow: 0 8px 18px -6px rgba(8, 145, 178, .5); }
.bg-pink { background: linear-gradient(135deg, #f9a8d4, #db2777); box-shadow: 0 8px 18px -6px rgba(219, 39, 119, .5); }

/* buttons + inputs */
.btn { border-radius: 12px; padding: 9px 15px; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, #3b7bff, #1d5bf0); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(29, 91, 240, .7); }
.btn-primary:hover { background: linear-gradient(135deg, #2f6ff5, #164fd6); }
.btn-sm { border-radius: 10px; }
input, select, textarea { border-radius: 12px; border-color: #dfe5ef; }

/* navigation */
.sidebar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); }
.nav a, .nav-toggle { border-radius: 12px; }
.nav a.active { background: linear-gradient(135deg, #eaf1ff, #f1edff); box-shadow: inset 0 0 0 1px #dbe6ff; }

/* tables */
.table-wrap { border-radius: 14px; }
th { background: #f7f9fc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
th:first-child { border-top-left-radius: 12px; } th:last-child { border-top-right-radius: 12px; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #f8fbff; }

/* pills + tabs */
.pill { border-radius: 999px; padding: 3px 11px; }
.status-tabs { padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.status-tabs button { border-radius: 999px; }
.range button { border-radius: 10px; }
.modal { border-radius: 22px; box-shadow: 0 40px 80px -20px rgba(16, 24, 40, .35); }

/* ---- leads list extras */
.when { font-weight: 600; font-size: 12.5px; }
.tag-svc { display: inline-block; font-size: 12px; font-weight: 600; color: #334155; }
.tag-buyer { font-size: 12px; color: #0f766e; font-weight: 600; margin-top: 2px; }
.pill.Sale-Made { background: #fef3c7; color: #92400e; }
.imp-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.imp-mode { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 10px; }
.imp-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fafcff; margin-bottom: 6px; }

/* disposition */
.dispo-now { background: #f5f8ff; border: 1px solid #e0e9ff; border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.dispo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* finance */
.kpi-card .sub { font-size: 12px; color: var(--muted); }

/* ---- webphone: parked calls on the main screen */
.wp-parked { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.wp-parked-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fff7e6, #fff1d6); border: 1px solid #fde3a7; animation: parkGlow 2.4s ease-in-out infinite; }
.wp-parked-item .wp-slot { display: inline-flex; align-items: center; gap: 3px; background: #f59e0b; color: #fff; border-radius: 10px; padding: 4px 8px; font-weight: 700; font-size: 12px; }
.wp-parked-item .wp-slot svg { width: 13px; height: 13px; }
.wp-parked-item .wp-li-main { flex: 1; min-width: 0; }
.wp-parked-item .wp-li-main b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-parked-item .wp-li-main small { color: #92400e; font-size: 11.5px; }
@keyframes parkGlow { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); } }

/* ---- webphone fits the screen: no scrolling to reach the call button */
.phone { max-height: calc(100dvh - 150px); }
@media (max-height: 760px) {
  .phone { bottom: 92px; max-height: calc(100dvh - 104px); }
  .phone-fab { bottom: 18px; width: 56px; height: 56px; }
  .wp-header { padding: 10px 12px; }
  .wp-avatar { width: 34px; height: 34px; }
  .wp-pad { padding: 8px 14px; }
  .wp-alert { padding: 7px 10px; font-size: 12px; margin-bottom: 6px; }
  .wp-display input { font-size: 21px; padding: 4px 40px; }
  .wp-keys { gap: 6px 12px; }
  .wp-key { aspect-ratio: auto; height: clamp(38px, 6.4vh, 50px); border-radius: 14px; }
  .wp-key span { font-size: 18px; }
  .wp-key small { font-size: 8.5px; margin-top: 1px; }
  .wp-big-call { width: 56px; height: 56px; }
  .wp-hero { padding: 10px 14px 12px; }
  .wp-hero-av { width: 54px; height: 54px; margin: 8px auto 6px; }
  .wp-hero-av span { font-size: 19px; }
  .wp-hero-name { font-size: 18px; }
  .wp-ctrls { gap: 8px 6px; }
  .wp-ctrl i { width: 44px; height: 44px; }
  .wp-end { margin-top: 10px; padding: 11px; }
}
@media (max-height: 640px) {
  .wp-from, .wp-loc:empty { display: none; }
  .wp-key { height: clamp(34px, 6vh, 42px); }
  .wp-key small { display: none; }
  .wp-hero-av { display: none; }
  .wp-ctrl span { font-size: 10.5px; }
  .wp-ctrl i { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .phone { max-height: calc(100dvh - 90px); }
}
