/* === Основные переменные === */
:root {
  --main-blue: #2563eb;
  --main-accent: #00bcd4;
  --main-dark: #222;
  --main-gray: #f4f4f4;
  --main-border: #e5e7eb;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--main-gray);
  color: var(--main-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Кнопки === */
.btn-main {
  font-weight: 700;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.35em 1.2em;
  font-size: 1em;
  height: 38px;
  min-width: 100px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px 0 rgba(60,120,255,0.10);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-main:hover, .btn-main:focus {
  background: #1749b1;
  box-shadow: 0 4px 16px 0 rgba(60,120,255,0.16);
}

.btn-secondary {
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  padding: 0.35em 1.2em;
  font-size: 1em;
  font-weight: 500;
  height: 38px;
  min-width: 100px;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #f3f4f6;
  color: #374151;
  text-decoration: underline;
}

/* === Таблица === */
.table-row {
  transition: background 0.2s;
}
.table-row:hover {
  background: #f7fafd;
}
table {
  border-collapse: collapse;
}
thead tr {
  border-bottom: 2px solid #e5e7eb;
}
tbody tr {
  border-bottom: 1px solid #e5e7eb;
}
td, th {
  border: none;
  font-size: 0.98rem;
  color: #444;
  padding-top: 0.55em;
  padding-bottom: 0.55em;
}
th {
  font-size: 0.88rem;
  color: #8a8a8a;
  font-weight: 500;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
}

/* === Адаптивность === */
@media (max-width: 1024px) {
  .sidebar { width: 60px; }
  .sidebar .text { display: none; }
}

/* === Мобильная адаптивность === */
@media (max-width: 768px) {
  .btn-main, .btn-secondary {
    width: 100%;
    min-width: auto;
    height: 44px;
    font-size: 1rem;
  }
  input[type="text"], input[type="date"], select {
    height: 44px;
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .table-row, .btn-main, .btn-secondary {
    -webkit-tap-highlight-color: transparent;
  }
  .table-row {
    min-height: 60px;
  }
}

/* === Карточки статистики === */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.03);
  border: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--main-blue);
  width: 100%;
}
@media (min-width: 1024px) {
  .stat-card::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 4px;
    height: 100%;
    background: var(--main-blue);
  }
  .stat-cyan::before { background: #06b6d4; }
  .stat-orange::before { background: #f59e42; }
  .stat-purple::before { background: #a78bfa; }
  .stat-blue::before { background: #2563eb; }
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08);
}
.stat-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}
.stat-card-group {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.07);
}
.stat-card-group svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.stat-blue .stat-card-group { background: rgba(37,99,235,0.07); }
.stat-blue .stat-card-group svg { stroke: #2563eb; }
.stat-cyan .stat-card-group { background: rgba(6,182,212,0.07); }
.stat-cyan .stat-card-group svg { stroke: #06b6d4; }
.stat-orange .stat-card-group { background: rgba(245,158,66,0.07); }
.stat-orange .stat-card-group svg { stroke: #f59e42; }
.stat-purple .stat-card-group { background: rgba(167,139,250,0.07); }
.stat-purple .stat-card-group svg { stroke: #a78bfa; }

/* === Аудио === */
audio {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(60,120,255,0.08);
  border: none;
  padding: 2px 8px;
  height: 38px;
  width: 120px;
  outline: none;
  transition: background 0.15s;
}
audio:hover {
  background: rgba(243,244,246,0.95);
}
audio::-webkit-media-controls-panel {
  background: transparent;
  border-radius: 12px;
}
@media (max-width: 768px) {
  audio {
    width: 100%;
    height: 44px;
  }
} 