/* ===== Japanese Study Reference Site ===== */
/* Modern, clean design with Japanese study aesthetic */

/* Font stack with CJK support */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e2e0dc;
  --color-text: #1a1a1a;
  --color-text-secondary: #5c5c5c;
  --color-text-muted: #8c8c8c;
  --color-primary: #c0392b;
  --color-primary-light: #e74c3c;
  --color-primary-bg: #fdf2f0;
  --color-accent: #d35400;
  --color-hover: #f5f0eb;
  --color-stripe: #f9f7f4;
  --color-shadow: rgba(0, 0, 0, 0.08);

  /* JLPT Level Colors */
  --color-n5: #27ae60;
  --color-n5-bg: #eafaf1;
  --color-n4: #2980b9;
  --color-n4-bg: #ebf5fb;
  --color-n3: #e67e22;
  --color-n3-bg: #fef5e7;
  --color-n2: #c0392b;
  --color-n2-bg: #fdedec;
  --color-n1: #8e44ad;
  --color-n1-bg: #f4ecf7;

  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Noto Sans SC', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.site-title .kanji-accent {
  color: var(--color-primary);
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header-back:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

/* ===== Container ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===== Homepage Grid ===== */
.home-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.home-section-title:first-of-type {
  margin-top: 1.5rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.home-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.home-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.home-card:hover::before {
  transform: scaleX(1);
}

.home-card-badge {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.home-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.home-card-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.home-hero {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.home-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.home-hero p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.home-search-box {
  max-width: 600px;
  margin: 2rem auto 0;
  position: relative;
}

.home-search-box input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  padding-left: 3rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.home-search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.home-search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.home-search-results {
  max-width: 600px;
  margin: 0.5rem auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-md);
}

.home-search-results.active {
  display: block;
}

.home-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.9rem;
}

.home-search-result-item:last-child {
  border-bottom: none;
}

.home-search-result-item:hover {
  background: var(--color-hover);
}

.home-search-result-item .result-section {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}

/* ===== Section Page ===== */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-header .subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.search-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem;
  padding-left: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--color-surface);
  transition: all var(--transition);
  font-family: inherit;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.search-wrapper .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.jump-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jump-wrapper label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.jump-wrapper input {
  width: 80px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-align: center;
  font-family: inherit;
}

.jump-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.jump-btn {
  padding: 0.55rem 1rem;
  background: var(--color-text-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

.jump-btn:hover {
  background: var(--color-text);
}

/* ===== Level Filter ===== */
.level-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.level-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-surface);
  font-family: inherit;
}

.level-btn:hover {
  border-color: var(--color-text-muted);
}

.level-btn.active {
  color: #fff;
  border-color: transparent;
}

.level-btn[data-level="N5"].active { background: var(--color-n5); }
.level-btn[data-level="N4"].active { background: var(--color-n4); }
.level-btn[data-level="N3"].active { background: var(--color-n3); }
.level-btn[data-level="N2"].active { background: var(--color-n2); }
.level-btn[data-level="N1"].active { background: var(--color-n1); }

.level-btn[data-level="all"].active { background: var(--color-text-secondary); }

/* ===== Data Table ===== */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead th {
  background: var(--color-stripe);
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table tbody tr {
  transition: background var(--transition);
  cursor: pointer;
}

.data-table tbody tr:nth-child(even) {
  background: var(--color-stripe);
}

.data-table tbody tr:hover {
  background: var(--color-hover);
}

.data-table tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  word-break: break-word;
}

.data-table .col-id {
  width: 60px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.data-table .col-level {
  width: 50px;
  text-align: center;
}

.level-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.level-badge.N5 { background: var(--color-n5); }
.level-badge.N4 { background: var(--color-n4); }
.level-badge.N3 { background: var(--color-n3); }
.level-badge.N2 { background: var(--color-n2); }
.level-badge.N1 { background: var(--color-n1); }

.data-table .col-page {
  width: 60px;
  text-align: center;
  color: var(--color-text-secondary);
}

.data-table .col-lesson {
  width: 70px;
  text-align: center;
}

.data-table .col-audio {
  width: 50px;
  text-align: center;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-primary);
  font-size: 0.9rem;
}

.audio-btn:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}

.audio-btn.playing {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Source filter tabs */
.source-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1rem;
}

.source-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.source-tab:hover {
  color: var(--color-text);
}

.source-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* Two-column comparison */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table thead th {
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  background: var(--color-stripe);
}

.comparison-table .edition-header {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 0.5rem;
}

.comparison-table .edition-2013 { background: #eaf2f8; }
.comparison-table .edition-2015 { background: #fef9e7; }

.comparison-table tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  cursor: pointer;
  transition: background var(--transition);
}

.comparison-table tbody tr:nth-child(even) td { background: var(--color-stripe); }
.comparison-table tbody tr:hover td { background: var(--color-hover); }

.comparison-table .col-id {
  width: 60px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.comparison-divider {
  width: 2px;
  background: var(--color-border);
  padding: 0;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover:not(:disabled) {
  background: var(--color-hover);
  border-color: var(--color-text-muted);
}

.pagination button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

.modal-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.modal-body .no-image {
  color: var(--color-text-muted);
  text-align: center;
  padding: 3rem;
  font-size: 0.95rem;
}

/* ===== Loading State ===== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ===== Search Mode Toggle ===== */
.search-mode-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.mode-btn {
  padding: 4px 14px;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 6px;
  background: var(--color-bg, #fff);
  color: var(--color-text-secondary, #888);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  background: var(--color-hover, #f5f5f5);
}

.mode-btn.active {
  background: var(--color-primary, #4a90d9);
  color: #fff;
  border-color: var(--color-primary, #4a90d9);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .container {
    padding: 1rem;
  }

  .home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }

  .home-hero {
    padding: 2rem 0.5rem 0.5rem;
  }

  .home-card {
    padding: 1rem;
  }

  .section-header h1 {
    font-size: 1.25rem;
  }

  .toolbar {
    gap: 0.5rem;
  }

  .search-wrapper {
    min-width: 100%;
    max-width: 100%;
  }

  .data-table {
    font-size: 0.82rem;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 0.5rem 0.6rem;
  }

  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius);
  }

  .pagination button {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: 1.3rem;
  }

  .home-hero p {
    font-size: 0.9rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .jump-wrapper {
    justify-content: flex-start;
  }

  .level-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

/* ===== Print ===== */
@media print {
  .site-header,
  .toolbar,
  .pagination,
  .modal-overlay,
  .site-footer {
    display: none;
  }

  .data-table-wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  body {
    background: #fff;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== Adverb Table ===== */
.data-table .col-kana {
  font-weight: 600;
  min-width: 100px;
  color: var(--color-primary);
  white-space: nowrap;
}

.data-table .col-meaning {
  min-width: 120px;
}

.data-table .col-example {
  min-width: 200px;
  font-size: 0.85rem;
}

.data-table .col-translate {
  min-width: 150px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.data-table .col-related {
  min-width: 100px;
  color: var(--color-accent);
  font-size: 0.85rem;
}

/* ===== Conjugation Table ===== */
.conjugation-table {
  font-size: 0.88rem;
}

.conjugation-table thead th {
  text-align: center;
  white-space: nowrap;
}

.conjugation-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0.55rem 0.75rem;
}

.conjugation-table tbody td:first-of-type {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.conjugation-table .conj-group-row td {
  background: var(--color-primary-bg);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.conjugation-table .conj-mark {
  color: var(--color-n5);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .conjugation-table {
    font-size: 0.78rem;
  }

  .conjugation-table thead th,
  .conjugation-table tbody td {
    padding: 0.4rem 0.4rem;
  }

  .data-table .col-example,
  .data-table .col-translate {
    min-width: auto;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .conjugation-table {
    font-size: 0.72rem;
  }

  .conjugation-table thead th,
  .conjugation-table tbody td {
    padding: 0.3rem 0.25rem;
  }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
