/* === 🌟 UI FIX v13.6 — Buttons, Inputs & Adaptive Layout === */

/* Унификация кнопок */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.48rem 1.1rem;
  transition: all 0.18s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hover glow + лёгкий градиент */
.btn:hover {
  background: linear-gradient(180deg, #2684ff 0%, #0d6efd 100%);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* Эффект нажатия */
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.45);
}

/* Кнопочная группа — flex и адаптив */
.btn-group-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.btn-group-flex .btn {
  flex: 1 1 auto;
  min-width: 90px;
  text-align: center;
}

/* Glow у input и select при фокусе */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: none;
  transition: all 0.15s ease-in-out;
}

/* Выравнивание подписей и блоков */
.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
}
.card .row.g-3.align-items-end > [class*="col-"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Адаптивность */
@media (max-width: 992px) {
  .btn-group-flex {
    justify-content: center;
  }
  .btn {
    padding: 0.55rem 1rem;
  }
}
@media (max-width: 576px) {
  .btn-group-flex .btn {
    min-width: auto;
    flex: 1 1 45%;
  }
  .form-label {
    font-size: 0.9rem;
  }
  input, select {
    font-size: 0.9rem;
  }
}
/* === Inline Insights (встроено в карточку фильтров) === */
.insights-inline {
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.5;
}

.insight-inline-card {
  background: #f9fafc;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.insight-inline-card:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.insight-inline-card div {
  margin-bottom: 0.3rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.insight-inline-card div:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .insights-inline .col {
    flex: 1 1 50%;
    margin-bottom: 0.4rem;
  }
}
/* === Fix: Hover / Active for radio buttons (Day / Month / Year) === */
.btn-outline-secondary {
  color: #333;
  background: #fff;
  border-color: rgba(0,0,0,.12);
  transition: all 0.2s ease-in-out;
}

.btn-outline-secondary:hover {
  color: #fff;
  background: linear-gradient(180deg, #4dabf7, #228be6);
  border-color: #228be6;
  box-shadow: 0 0 8px rgba(34,139,230,0.25);
}

.btn-outline-secondary.active,
.btn-outline-secondary:checked + label,
.btn-check:checked + .btn-outline-secondary {
  color: #fff;
  background: linear-gradient(180deg, #2684ff, #0d6efd);
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13,110,253,0.3);
}
/* === Отступ под блоком аналитики === */
.insights-inline {
  margin-bottom: 1.5rem; /* добавляем пространство перед KPI-блоком */
}

.insight-inline-card {
  margin-bottom: 0.8rem;
}
/* === 🎚️ Filter indicator under KPI === */
.filter-indicator {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0d6efd;
  background: linear-gradient(135deg, rgba(240,247,255,0.95), rgba(225,238,255,0.9));
  border: 1px solid rgba(13,110,253,0.15);
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
  border-radius: 10px;
  display: inline-block;
  padding: 6px 14px;
  margin: 0.8rem auto 1.6rem auto;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.filter-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(13,110,253,0.15);
}
.filter-indicator {
  animation: fadeIn 0.6s ease;
  transition: all 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-indicator .badge:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

