﻿/* Глобальные кроссбраузерные правила для аккуратных темных скроллбаров */
* {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Стили для кастомного GitHub Heatmap */
.heatmap-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.heatmap-months-row {
  display: flex;
  margin-left: 28px;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  height: 16px;
  position: relative;
}

.heatmap-month-label {
  position: absolute;
  white-space: nowrap;
}

.heatmap-body {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.heatmap-days-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  width: 22px;
  padding-top: 1px;
}

.heatmap-day-label {
  height: 12px;
  line-height: 12px;
}

.heatmap-weeks-container {
  display: flex;
  gap: 3px;
}

.heatmap-week-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2.5px;
  transition: transform 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}

.heatmap-cell:hover {
  transform: scale(1.35);
  z-index: 10;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ApexCharts dark tooltips */
.apexcharts-tooltip.apexcharts-theme-dark {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  border-radius: 0.75rem !important;
}

/* Аккуратный скроллбар для списков журнала */
.overflow-y-auto::-webkit-scrollbar {
  width: 5px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Стили для скролла модального окна без артефактов */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Скрытие полосы скролла на мобильных табах */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
