/* Общие стили для таблиц (index.php + exchange.php) */
table thead th,
.exchange-table thead th {
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
  border-bottom: 2px solid #cbd5e1;
}

tbody tr:hover,
.exchange-table tbody tr:hover {
  background: linear-gradient(to right, rgba(59,130,246,0.08), transparent);
}

td.text-green-600,
.exchange-table td.text-green-600 {
  background: rgba(34,197,94,0.08);
  font-weight: 600;
}

td.text-red-600,
.exchange-table td.text-red-600 {
  background: rgba(239,68,68,0.08);
  font-weight: 600;
}

th[data-column],
.exchange-table th[data-column] {
  border-right: 1px solid #d1d5db;
  border-left: 1px solid #d1d5db;
}

th[data-column]:first-child,
.exchange-table th[data-column]:first-child {
  border-left: none;
}

th[data-column]:last-child,
.exchange-table th[data-column]:last-child {
  border-right: none;
}

th[data-column] select,
.exchange-table th[data-column] select {
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%236b7280' d='M6 9L2 5h8z'/></svg>") no-repeat right 0.5rem center / 12px;
  padding-right: 1.5rem;
  border-radius: 6px;
}

.text-gray-600 time::before,
.exchange-table .text-gray-600 time::before {
  content: "🕒 ";
  font-size: 0.9em;
}

/* Tabs (только для index.php) */
.tabs {
  display: inline-flex;
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.tabs a {
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
}

.tabs a.active {
  background: white;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs a:hover:not(.active) {
  background: rgba(255,255,255,0.5);
}

/* Логотип */
.logo-img {
  height: 2.5rem;          /* 40px */
  width: auto;
  object-fit: contain;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  .logo-img {
    height: 2.125rem;      /* 34px */
  }
}

@media (max-width: 640px) {
  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 540px !important;
  }

  img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
  }

  .prose p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  h1 {
    font-size: 2.125rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .rounded-3xl {
    border-radius: 1.25rem !important;
  }

  .p-6, .p-8 {
    padding: 1.25rem !important;
  }

  .px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .py-12, .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}