:root {
  --sinoai-green: #7ab89f;
  --sinoai-green-soft: #eaf5ef;
  --sinoai-green-dark: #4f8a73;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
}

/* ===== GLOBAL ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f4f6; /* juda och kulrang – kartalar ko‘rinishi yaxshi bo‘ladi */
  color: var(--text-main);
}

.page {
  max-width: 1320px;
  margin: 0 auto 40px;
}

/* HEADER / TOP STRIP */

.top-strip {
  margin-top: 16px;
  margin-bottom: 18px;
  padding: 18px 24px;
  border-radius: 32px;
  background: linear-gradient(90deg, #9ccdb8, #7ab89f, #4f8a73);
  color: #0b172a;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
}

.top-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sino-logo {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sino-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* logoni oq ko'rinishda saqlash */
}

.top-strip-text .top-title {
  font-size: 20px;
  font-weight: 600;
}
.top-strip-text .top-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

/* markazdagi nav pill – sendagi ko‘rinishga mos */

.top-strip-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav {
  padding: 6px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.95);
  display: flex;
  gap: 8px;
}

.nav-link {
  white-space: nowrap;
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  text-decoration: none;
  border: 1px solid rgba(209, 213, 219, 0.9);
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.08s ease,
    border-color 0.14s ease;
}

.nav-link:hover {
  background: #eaf5ef;
  color: #4f8a73;
  border-color: #c1decf;
  box-shadow: 0 8px 20px rgba(122, 184, 159, 0.25);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, #7ab89f, #4f8a73);
  color: #f9fafb;
  border-color: #4f8a73;
  box-shadow: 0 10px 26px rgba(122, 184, 159, 0.35);
}

.nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.9);
  border-style: dashed;
}

.top-strip-right {
  margin-left: 12px;
}

/* TG / APP toggle */

.top-strip-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-group {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 999px;
  padding: 2px;
  display: inline-flex;
  gap: 2px;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: #e5f9ee;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.toggle-btn:hover {
  transform: translateY(-1px);
}

.toggle-btn.active {
  background: #ecfdf5;
  color: var(--sinoai-green-dark);
}

.logout-btn {
  margin-left: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s, border-color 0.2s;
}

.logout-btn:hover {
  transform: translateY(-1px);
  border-color: #7ab89f;
  box-shadow: 0 10px 28px rgba(122, 184, 159, 0.25);
}

.logout-btn:active {
  transform: translateY(0);
}

/* ===== KPI STRIP – SinoAI neon style ===== */

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 30px;
  padding: 18px 22px 22px;
  background: linear-gradient(
    to bottom,
    #e7f3ed 0%,
    #edf1f7 55%,
    transparent 100%
  );
  border-radius: 24px 24px 32px 32px;
}

/* Bitta karta */
.kpi-chip {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 12px 14px 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

/* Yashil glow uchun ichki gradient chiziq */
.kpi-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(122, 184, 159, 0.14), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.kpi-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.22);
  border-color: rgba(22, 163, 74, 0.25);
}

.kpi-chip:hover::before {
  opacity: 1;
}

/* Header: icon + label */
.kpi-chip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #d8eee4, #7ab89f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f8a73;
  font-size: 17px;
  box-shadow: 0 0 0 2px #eaf5ef;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-chip:hover .kpi-icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(122, 184, 159, 0.45);
}

.kpi-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Qiymat */
.kpi-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  padding-left: 2px;
}

/* Responsiv: 4 -> 3 -> 2 -> 1 */
@media (max-width: 1280px) {
  .kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== MAP + REGION CARD LAYOUT ===== */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
  gap: 20px;
}

/* CHAP TOMON – XARITA PANELI */

.map-panel {
  background: radial-gradient(circle at top left, #ecfdf5, #ffffff 40%, #e5f8ee);
  border-radius: 24px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.legend-box {
  width: 34px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7ab89f, #4f8a73);
}

.legend-text {
  font-size: 16px;
  font-weight: 600;
}

/* Xarita oynasi */
.map-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

/* SVG o‘zi */
.uz-map-svg {
  width: 100%;
  height: auto;
  max-height: 460px;
  display: block;
}

/* INLINE filllarni bosish uchun !important */
.uz-map-svg .region {
  fill: #eaf5ef !important;          /* juda och yashil */
  stroke: #7ab89f !important;
  stroke-width: 1.8;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease,
    transform 0.1s ease;
}

.uz-map-svg .region:hover {
  fill: #d4e8de !important;
  transform: translateY(-0.5px);
}

.uz-map-svg .region.active {
  fill: #7ab89f !important;
  stroke: #000000 !important;
  stroke-width: 2.2;
}

/* Xarita ichida ko‘rsatiladigan karta (o‘ng yuqori) */
.uz-map-inner {
  position: relative;
}

.uz-map-info {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.uz-info-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
  min-width: 240px;
  border: 1px solid #e5e7eb;
}

.uz-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.uz-info-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.uz-region-pin {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eaf5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7ab89f;
  font-size: 18px;
}

.uz-info-body {
  display: grid;
  gap: 6px;
}

.uz-info-row {
  display: flex;
  flex-direction: column;
}

.uz-info-row .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.uz-info-row .value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

/* Pastdagi holat legendi */

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #4b5563;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-color {
  width: 24px;
  height: 14px;
  border-radius: 3px;
}

.status-excellent {
  background: #7ab89f;
}
.status-good {
  background: #a3e635;
}
.status-bad {
  background: #fde68a;
}

/* O‘NG TOMON – REGION CARD */

.region-panel {
  display: flex;
  align-items: stretch;
}

.region-card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 18px 20px;
  width: 100%;
  border: 1px solid #e5e7eb;
  position: relative;
}

/* Neon “halo” pastda */
.region-card::after {
  content: "";
  position: absolute;
  inset: auto 10% -14px;
  height: 28px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.region-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.region-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.region-pin {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--sinoai-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sinoai-green);
  font-size: 18px;
}

.region-card-body {
  display: grid;
  gap: 8px;
}

.region-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.region-row .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.region-row .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.region-row.small .label {
  font-size: 10px;
}

.region-row.small .value {
  font-size: 13px;
}

.region-card hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 10px 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  body {
    padding: 16px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .region-panel {
    margin-top: 14px;
  }

  .uz-map-svg {
    max-height: 380px;
  }
}

@media (max-width: 800px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .top-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* REGION PANEL UMUMIY */

.region-panel {
  display: flex;
}

/* Katta card */

.neon-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18);
  border: 1px solid #e5e7eb;
  width: 100%;
}

.region-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.region-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.region-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.region-pin {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eaf5ef;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #7ab89f;
  font-size: 20px;
}

/* 2 ta table yonma-yon */

.region-tables-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Table cardlar */

.table-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.table-card.compact {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Header qatori */

.table-header-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 60%, #ecfdf5 100%);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  align-items: center;
  letter-spacing: 0.01em;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.th-name {
  text-align: left;
}

.th-num {
  text-align: right;
}

/* Scroll */

.table-scroll {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 12px;
}

/* Jadval va qatorlar */

.stat-table {
  width: 100%;
  border-collapse: collapse;
}

.stat-table tr {
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
}

.stat-table tr:last-child {
  border-bottom: none;
}

.stat-table tr:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.stat-table tr.active {
  background: #eaf5ef;
  box-shadow: inset 0 0 0 1px #d8eee4;
}

.stat-table td {
  padding: 9px 12px;
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.stat-table td:first-child {
  text-align: left;
}

.stat-table td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}

/* Responsiv */

@media (max-width: 1024px) {
  .region-tables-row {
    grid-template-columns: 1fr;
  }
}


/* ===== GLOBAL NAVBAR (1–6 sahifa uchun) ===== */

.nav-shell {
  margin: 16px 0 22px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.95); /* juda engil yashil fonda */
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

/* scroll bo'lsa ham chiroyli bo'lsin */
.nav-shell::-webkit-scrollbar {
  height: 4px;
}
.nav-shell::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

/* umumiy pill linklar */

.nav-link {
  white-space: nowrap;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  text-decoration: none;
  border: 1px solid rgba(209, 213, 219, 0.8);
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.08s ease,
    border-color 0.14s ease;
}

.nav-link:hover {
  background: #eaf5ef;
  color: #4f8a73;
  border-color: #c1decf;
  box-shadow: 0 8px 20px rgba(122, 184, 159, 0.25);
  transform: translateY(-1px);
}

/* active – SinoAI yashil gradient pill */

.nav-link.active {
  background: linear-gradient(135deg, #7ab89f, #4f8a73);
  color: #f9fafb;
  border-color: #4f8a73;
  box-shadow: 0 10px 26px rgba(122, 184, 159, 0.35);
}

/* disabled – kelajakdagi sahifalar */

.nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.85);
  border-style: dashed;
}
.nav-link.disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.9);
  color: #9ca3af;
}





/* ===== PAGE 2 – CHARTS LAYOUT ===== */

.charts-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Chart card */

.chart-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 18px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border: 1px solid #e5e7eb;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.chart-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.chart-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Filter panel */

.chart-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #6b7280;
}

.filter-item select,
.filter-item input[type="date"] {
  min-width: 120px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 12px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.filter-item select:focus,
.filter-item input[type="date"]:focus {
  border-color: #7ab89f;
  box-shadow: 0 0 0 1px #d8eee4;
}

.filter-apply {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #7ab89f;
  color: #0b172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(122, 184, 159, 0.35);
  transition:
    background 0.12s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
}

.filter-apply:hover {
  background: #4f8a73;
  transform: translateY(-1px);
}

/* Canvas container */

.chart-body {
  margin-top: 8px;
  padding-top: 4px;
}

.chart-body canvas {
  width: 100% !important;
  height: 320px !important;
}

/* Responsiv */

@media (max-width: 900px) {
  .chart-body canvas {
    height: 260px !important;
  }
}

@media (max-width: 640px) {
  .chart-card {
    padding: 14px 12px 18px;
  }

  .chart-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-filters {
    width: 100%;
  }

  .filter-item select,
  .filter-item input[type="date"] {
    min-width: 0;
  }
}

/* ===== Date range inputs ===== */

.date-range-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-field label {
  font-size: 13px;
  color: #6b7280;
}

.date-input {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.date-input input {
  width: 150px;
  padding: 8px 34px 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease,
    background 0.14s ease;
}

.date-input input:focus {
  border-color: #7ab89f;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(122, 184, 159, 0.25);
}

.date-icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #6b7280;
  font-size: 16px;
}

/* Refresh tugma */

.date-refresh-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #7ab89f, #4f8a73);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(122, 184, 159, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.date-refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.6);
}

.date-refresh-btn i {
  font-size: 18px;
}

/* ===== Litepicker custom theme (SinoAI) ===== */

.litepicker {
  border-radius: 24px;
  border: none;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
}

.litepicker .container__main {
  padding: 12px 14px 16px;
}

.litepicker .month-item-header {
  font-weight: 600;
  color: #0f172a;
}

.litepicker .month-item-weekdays-row > div {
  color: #9ca3af;
  font-size: 11px;
}

/* Kunlar */

.litepicker .day-item {
  width: 38px;
  height: 32px;
  border-radius: 10px;
  margin: 2px;
  font-size: 13px;
  line-height: 32px;
}

.litepicker .day-item:hover {
  background: #e0f2fe;
}

/* Tanlangan segment */

.litepicker .day-item.is-in-range {
  background: #eaf5ef;
  color: #4f8a73;
}

/* Start / end – gradient pill */

.litepicker .day-item.is-start-date,
.litepicker .day-item.is-end-date {
  background: linear-gradient(135deg, #7ab89f, #0ea5e9);
  color: #ffffff;
  border-radius: 999px;
}

/* Bugungi kun */

.litepicker .day-item.is-today:not(.is-in-range):not(.is-start-date):not(.is-end-date) {
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Header tugmalari (oylar orasida yurish) */

.litepicker .button-next-month,
.litepicker .button-previous-month {
  color: #4b5563;
}
.litepicker .button-next-month:hover,
.litepicker .button-previous-month:hover {
  background: #ecfdf5;
  color: #065f46;
}



/* ==== 3-PAGE: FILTER STRIP ==== */

.filter-strip {
  margin-bottom: 18px;
  padding: 14px 20px;
  border-radius: 24px;
  background: linear-gradient(120deg, #ecfdf5, #f9fafb);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group.wide {
  flex: 1;
}

.filter-group label {
  font-size: 13px;
  color: #4b5563;
}

/* Select styling (channel, region) */

.fancy-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fancy-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
  outline: none;
  cursor: pointer;
  min-width: 150px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease,
    background 0.14s ease;
}

.fancy-select select:focus {
  border-color: #7ab89f;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(122, 184, 159, 0.25);
}

.fancy-select-icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #6b7280;
  font-size: 16px;
}

/* Date range – avval yozganimizga mos tweaklar */

.date-label {
  font-size: 13px;
  color: #6b7280;
}

/* ==== 3-PAGE: LAYOUT + DARK CHART CARDS ==== */

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chart-card.dark {
  border-radius: 28px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
  overflow: hidden;
  color: #e5e7eb;
  position: relative;
}

.chart-card.dark::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(34, 197, 94, 0.16),
    transparent 55%
  );
  opacity: 0.9;
  pointer-events: none;
}

.chart-card-header {
  position: relative;
  z-index: 1;
  padding: 16px 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.chart-card-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

.chart-card-body {
  position: relative;
  z-index: 1;
  padding: 4px 20px 18px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas responsive */
.chart-card-body canvas {
  width: 100%;
  max-height: 360px;
  height: 280px;
  flex: 1;
}

/* ================= LOGIN PAGE ================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7fff9 0%, #e9fbf1 35%, #d7f7e4 70%, #ffffff 100%);
  overflow: hidden;
  position: relative;
  color: #0f172a;
}

.login-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, rgba(34, 197, 94, 0.18), transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(34, 197, 94, 0.15), transparent 40%),
    radial-gradient(circle at 60% 20%, rgba(59, 130, 246, 0.12), transparent 35%);
  filter: blur(80px);
}

.login-card {
  position: relative;
  width: min(1180px, 96vw);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(34, 197, 94, 0.18);
}

.login-hero {
  position: relative;
  background: linear-gradient(145deg, #ecfdf3 0%, #d6f9e7 50%, #b6f4d7 100%);
  padding: 54px 48px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.login-hero-top {
  display: flex;
  align-items: center;
}

.login-hero-main {
  margin-top: 24px;
}

.login-hero-main h1,
.login-hero h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.login-hero-main p,
.login-hero p {
  margin: 8px 0 0;
  font-size: 16px;
  max-width: 460px;
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 10px 14px;
  border-radius: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.login-hero-bottom {
  align-self: flex-start;
  margin-top: 10px;
}

.login-hero-badge i {
  font-size: 18px;
}

.login-hero-graphic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.18), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(59, 130, 246, 0.12), transparent 35%);
  opacity: 0.35;
}

.login-form {
  position: relative;
  padding: 54px 48px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.login-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.login-form p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

.login-form form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 13px;
  color: #cbd5e1;
}

.login-field .input-wrap {
  position: relative;
}

.login-field input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input:focus {
  border-color: #7ab89f;
  box-shadow: 0 0 0 3px rgba(122, 184, 159, 0.2);
}

.login-field .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7ab89f;
  font-size: 18px;
}

.login-button {
  margin-top: 12px;
  background: linear-gradient(135deg, #7ab89f, #0ea5e9);
  color: #0b1220;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s;
  box-shadow: 0 12px 30px rgba(122, 184, 159, 0.35);
}

.login-button:hover {
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: auto;
  font-size: 12px;
  color: #64748b;
}

.login-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  display: none;
}

.login-error.show {
  display: block;
}

@media (max-width: 880px) {
  .login-card {
    grid-template-columns: 1fr;
  }
  .login-hero {
    min-height: 260px;
  }
}

/* Neon dots wordmark */
/* AI summary table */

.ai-summary-table-wrapper {
  max-height: 280px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
}

.ai-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #e5e7eb;
}

.ai-summary-table thead {
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
}

.ai-summary-table th,
.ai-summary-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.ai-summary-table th {
  font-weight: 500;
  color: #9ca3af;
  font-size: 12px;
}

.ai-summary-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.85);
}

.ai-summary-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

.ai-summary-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.18);
}

.ai-summary-table td:nth-child(1) {
  width: 36px;
  color: #9ca3af;
}

/* ==== 4-PAGE: RATING TABLES ==== */

.rating-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.table-card {
  border-radius: 28px;
  background: radial-gradient(circle at top left, #ecfdf5, #ffffff 40%, #f3f4f6);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  padding: 18px 18px 14px;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 10px;
}

.table-card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.table-card-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.table-card-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.table-card-filter label {
  font-size: 12px;
  color: #6b7280;
}

/* jadval o'zi */

.rating-table-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rating-table thead {
  background: linear-gradient(90deg, #ecfdf5, #e5f9ff);
}

.rating-table th,
.rating-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.rating-table th {
  font-weight: 600;
  font-size: 12px;
  color: #4b5563;
}

.rating-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.rating-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.rating-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.07);
}

.rating-table td:first-child {
  width: 40px;
  color: #6b7280;
}

/* yulduz reyting ko'rinishini ozgina ajratib turamiz */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.rating-stars i {
  font-size: 14px;
  color: #facc15;
}

/* responsiv */
@media (max-width: 900px) {
  .table-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-card-filter {
    align-items: flex-start;
  }

  .rating-table th,
  .rating-table td {
    padding: 6px 8px;
  }
}


/* ==== 5-PAGE: KLINIKA ANALITIKASI ==== */

.clinic-analytics-page {
  margin-bottom: 24px;
}

.clinic-analytics-card {
  padding-bottom: 20px;
}

/* klinika haqida qisqa meta satr */
.clinic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px 6px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ecfdf5, #f9fafb);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.clinic-meta-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
}

.clinic-meta-item .meta-label {
  font-weight: 500;
  color: #6b7280;
}

.clinic-meta-item .meta-value {
  color: #111827;
}

/* metrikalar jadvali biroz kengroq ko'rinsin */
.metric-table-wrapper {
  margin-top: 6px;
}

.metric-table th:nth-child(2),
.metric-table td:nth-child(2) {
  width: 45%;
}

.metric-table th:nth-child(3),
.metric-table td:nth-child(3) {
  width: 45%;
}

/* ko'rsatkich ustunini biroz ajratamiz */
.metric-value-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 12px;
  color: #065f46;
  gap: 6px;
}

.metric-value-pill i {
  font-size: 14px;
}

@media (max-width: 800px) {
  .metric-table th,
  .metric-table td {
    padding: 6px 8px;
  }

  .metric-table th:nth-child(2),
  .metric-table td:nth-child(2),
  .metric-table th:nth-child(3),
  .metric-table td:nth-child(3) {
    width: auto;
  }

  .clinic-meta {
    flex-direction: column;
  }
}

/* ==== 6-PAGE: KLIKLAR SONI ==== */

.clicks-page {
  margin-bottom: 24px;
}

.clicks-card {
  padding-bottom: 18px;
}

/* Filter panel: channel label + date-range + refresh */
.clicks-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.clicks-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.clicks-filters label {
  color: #6b7280;
  font-weight: 500;
}

/* Channel badge ko'rinishi */
.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Date-input design (From / To) */
.date-input-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  min-width: 160px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.date-input-shell:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08);
  background: #ffffff;
}

.date-input-shell .date-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #111827;
  letter-spacing: 0.06em;
  width: 100%;
  cursor: pointer;
}

.date-input-shell i {
  font-size: 16px;
  color: #6b7280;
}

/* Refresh tugmasi */
.filter-refresh-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at 30% 0%, #6ee7b7 0, #10b981 35%, #047857 100%);
  color: #ecfdf5;
  box-shadow: 0 14px 35px rgba(4, 148, 90, 0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.filter-refresh-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 45px rgba(4, 148, 90, 0.6);
}

.filter-refresh-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 10px 25px rgba(4, 148, 90, 0.4);
}

.filter-refresh-btn i {
  font-size: 18px;
}

/* Table egna: rating-table dan foydalanamiz, faqat bitta ustun right-align */
.clicks-table td:nth-child(3),
.clicks-table th:nth-child(3) {
  text-align: right;
}

/* satr ustiga borganda neon effekt */
.clicks-table tbody tr:hover {
  background: radial-gradient(
    circle at 0% 0%,
    rgba(16, 185, 129, 0.08),
    rgba(249, 250, 251, 1)
  );
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.18);
}

.table-footnote {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .clicks-filters {
    align-items: stretch;
  }

  .filter-refresh-btn {
    align-self: flex-end;
  }

  .date-input-shell {
    min-width: 0;
    width: 100%;
  }
}
