:root {
  --ink: #10192f;
  --muted: #70809b;
  --bg: #f3f7fb;
  --line: #dce5ef;
  --green: #0ca678;
  --navy: #10192f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon,
.login-logo {
  display: grid;
  place-items: center;
  background: #08a36e;
  color: #fff;
  border-radius: 12px;
}
.brand-icon {
  width: 40px;
  height: 40px;
  font-size: 22px;
}
.brand-title {
  font-weight: 800;
  font-size: 16px;
}
.brand small {
  color: #70809b;
}
.ready {
  font-size: 11px;
  background: #dcf8ed;
  color: #0a8b5e;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: 700;
}
.navlinks {
  display: flex;
  gap: 8px;
  align-items: center;
}
.navlinks a {
  padding: 11px 14px;
  text-decoration: none;
  color: #4c5b76;
  border-radius: 9px;
  font-weight: 650;
}
.navlinks a.active {
  background: var(--navy);
  color: #fff;
}
.user-pill {
  padding: 8px 12px;
  color: #64748b;
}
.page-wrap {
  padding: 28px 6%;
  min-height: calc(100vh - 120px);
}
.hero-card,
.section-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px #10204008;
}
.hero-card h1,
.section-head h2 {
  font-weight: 800;
  margin: 0 0 5px;
}
.hero-card p,
.section-head p {
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 5px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 130px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 650;
}
.stat-card strong {
  display: block;
  font-size: 31px;
  margin: 10px 0 2px;
}
.stat-card small {
  color: #94a3b8;
}
.stat-card.accent {
  border-top: 3px solid var(--green);
}
.app-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 5px #10204008;
  overflow: hidden;
}
.app-card .card-header {
  padding: 17px 20px;
}
.table thead th {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #4b6280;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 13px;
}
.table td {
  padding: 13px 14px;
  vertical-align: middle;
  border-color: var(--line);
  color: #20304d;
}
.empty {
  text-align: center;
  padding: 50px !important;
  color: #8a98ac;
}
.footer {
  text-align: center;
  color: #8996aa;
  font-size: 12px;
  padding: 20px;
}
.section-head {
  margin-bottom: 20px;
}
.actions {
  display: flex;
  gap: 8px;
}
.category-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.cat-tab {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #53647e;
  font-weight: 650;
}
.cat-tab.active {
  background: var(--navy);
  color: #fff;
}
.cat-tab span {
  font-size: 11px;
  background: #edf2f7;
  border-radius: 10px;
  padding: 2px 6px;
  margin-left: 4px;
}
.cat-tab.active span {
  background: #263450;
  color: #fff;
}
.cat-tab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.new-cat {
  margin-left: auto;
  text-decoration: none;
  /*color: #2563eb;*/
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 395px;
  padding: 7px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-box i {
  color: #8190a7;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}
.showing {
  color: #70809b;
  font-size: 12px;
}
.contact-name {
  font-weight: 750;
}
.contact-table td small {
  color: #8b9ab0;
}
.phone {
  font-size: 12px;
}
.cat-badge {
  background: color-mix(in srgb, var(--cat) 13%, white);
  color: var(--cat);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 10px;
  background: #f2f6fa;
  border: 1px solid #dce5ed;
  color: #50627d;
  padding: 4px 6px;
  border-radius: 4px;
}
.chat-btn {
  display: inline-block;
  text-decoration: none;
  background: #e9fbf4;
  color: #05875e;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  margin-right: 5px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #687892;
  text-decoration: none;
  border-radius: 7px;
}
.icon-btn:hover {
  background: #eef3f8;
}
.icon-btn.danger:hover {
  color: #dc3545;
}
.form-card {
  padding: 4px;
}
.form-card label {
  font-weight: 700;
  margin-bottom: 7px;
}
.form-card .form-control,
.form-card .form-select {
  border-color: #d8e1eb;
  border-radius: 8px;
  padding: 10px 12px;
}
.api-note {
  background: #f3f8ff;
  border: 1px solid #d8e6f7;
  padding: 14px;
  border-radius: 10px;
  color: #4f6380;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3f8fc, #e9f4ef);
}
.login-card {
  background: #fff;
  width: min(430px, 92vw);
  padding: 35px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px #12304018;
}
.login-logo {
  width: 58px;
  height: 58px;
  margin: auto;
  font-size: 27px;
}
.btn-success {
  background: #08a36e;
  border-color: #08a36e;
}
.btn-success:hover {
  background: #078b5f;
  border-color: #078b5f;
}
@media (max-width: 900px) {
  .topbar {
    padding: 10px 3%;
    height: auto;
    gap: 10px;
    align-items: flex-start;
  }
  .navlinks {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .navlinks a {
    padding: 8px;
  }
  .user-pill {
    display: none;
  }
  .page-wrap {
    padding: 18px 3%;
  }
  .section-head,
  .hero-card {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .actions .btn {
    flex: 1;
  }
  .toolbar {
    gap: 10px;
  }
  .search-box {
    width: 100%;
  }
  .showing {
    display: none;
  }
  .new-cat {
    margin-left: 0;
  }
}
