/* CRM Maxsus uslublari */

body {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Telegram Web App moslashuvi */
body.telegram-app {
  background-color: var(--tg-theme-bg-color, #f8fafc);
  color: var(--tg-theme-text-color, #1e293b);
}

.telegram-app header {
  border-radius: 0.75rem;
}

/* Scrollbar dizayni */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Asosiy navigatsiya tablari */
.main-tab.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.35);
}

/* Til tanlash tugmalari */
.lang-btn {
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.lang-btn.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}
.lang-btn:not(.active):hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* Filter tab faol holati */
.filter-tab.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px -2px rgba(2, 132, 199, 0.35);
}

.filter-tab:not(.active) {
  background-color: #f1f5f9;
}

/* Lead kartochkasi hover effekti */
.lead-row {
  transition: all 0.15s ease-in-out;
}
.lead-row:hover {
  background-color: #f8fafc;
}

/* Status ranglari */
.badge-new {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-contacted {
  background-color: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-scheduled {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.badge-examined {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.badge-completed {
  background-color: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}
.badge-cancelled {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* 1-click status almashtirish hover */
.status-change-btn:hover {
  transform: translateY(-1px);
}
.status-change-btn:active {
  transform: translateY(0);
}

/* ================= KALENDAR USLUBLARI ================= */
.cal-day-cell {
  min-height: 72px;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.35rem;
  background-color: #ffffff;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-day-cell:hover {
  border-color: #bae6fd;
  background-color: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cal-day-cell.other-month {
  background-color: #f8fafc;
  opacity: 0.35;
  cursor: default;
}

.cal-day-cell.other-month:hover {
  border-color: #f1f5f9;
  background-color: #f8fafc;
  transform: none;
  box-shadow: none;
}

.cal-day-cell.today {
  border-color: #38bdf8;
  background-color: #f0f9ff/50;
}

.cal-day-cell.today .day-number {
  color: #0284c7;
  font-weight: 800;
}

.cal-day-cell.selected {
  border-color: #0284c7 !important;
  background-color: #e0f2fe !important;
  box-shadow: 0 0 0 2px #0284c7;
}

.cal-badge-pill {
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cal-appointment-card {
  transition: all 0.15s ease-in-out;
}
.cal-appointment-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}
