html {
        scroll-behavior: smooth;
    }

:root {
        --bg-light: #f5f7fa;
        --bg-header: #1e88e5;
        --bg-header-dark: #0d47a1;
        --bg-table: #ffffff;
        --bg-table-dark: #1e1e1e;
        --border-light: #ddd;
        --border-dark: #333;
        --text-main: #111827;
        --text-muted: #555;
        --text-muted-dark: #bbb;
        --accent: #1e88e5;
        --accent-dark: #90caf9;
        --radius-lg: 12px;
        --radius-md: 8px;
        --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
        --transition-fast: 0.25s ease;
    }

    * {
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
        background: var(--bg-light);
        color: var(--text-main);
        margin: 0;
        padding: 0;
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .header {
        text-align: center;
        padding: 28px 16px 22px;
        background: var(--bg-header);
        color: white;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
        position: relative;
    }

    .header-inner {
        max-width: 1100px;
        margin: 0 auto;
    }

    .globe-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
        animation: globeIntro 0.7s ease-out forwards;
        opacity: 0;
        transform: translateY(10px);
    }

    .globe-icon {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
        overflow: hidden;
    }

    .header-title {
        margin: 4px 0 14px;
        font-size: 32px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .header-sub {
        margin: 0 0 18px;
        font-size: 14px;
        opacity: 0.9;
    }

    .header-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #searchBar {
        width: min(420px, 80vw);
        padding: 10px 12px;
        border-radius: 999px;
        border: none;
        font-size: 15px;
        transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform 0.1s ease;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 6px 16px rgba(15, 23, 42, 0.25);
    }

    #searchBar:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 8px 20px rgba(15, 23, 42, 0.35);
        transform: translateY(-1px);
    }

    #darkToggle {
        padding: 9px 16px;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        background: white;
        color: var(--accent);
        font-weight: bold;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
        transition: background var(--transition-fast), color var(--transition-fast), transform 0.1s ease, box-shadow var(--transition-fast);
    }

    #darkToggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
    }

    .dark-mode {
        background: #0b1120;
        color: #e0e0e0;
    }

    .dark-mode .header {
        background: var(--bg-header-dark);
        box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    }

    .dark-mode #searchBar {
        background: #020617;
        color: white;
        box-shadow: 0 0 0 1px rgba(148,163,184,0.7), 0 6px 16px rgba(15, 23, 42, 0.9);
    }

    .dark-mode #darkToggle {
        background: #111827;
        color: var(--accent-dark);
        box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    }

    .table-page-wrapper {
        padding: 26px 16px 40px;
    }

    .table-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 8px;
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

    .table-card {
        background: transparent;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        overflow: hidden;
    }

    .table-card-inner {
        background: var(--bg-table);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid rgba(148,163,184,0.35);
    }

    .dark-mode .table-card-inner {
        background: var(--bg-table-dark);
        border-color: rgba(51,65,85,0.9);
        box-shadow: 0 16px 40px rgba(0,0,0,0.85);
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        text-align: center;
        transition: background var(--transition-fast), color var(--transition-fast);
        margin: 0;
    }

    thead th {
        background: #e3f2fd;
        font-weight: bold;
        padding: 10px;
        border-bottom: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
        vertical-align: middle;
    }

    thead th:last-child {
        border-right: none;
    }

    th, td {
        padding: 10px;
        border-bottom: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
        width: 20%;
        transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    }

    tr:last-child td {
        border-bottom: none;
    }

    td:last-child {
        border-right: none;
    }

    td a {
        text-decoration: none;
        color: var(--accent);
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
        font-weight: 500;
    }

    td img, th img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        border-radius: 4px;
    }

    td:hover {
        background: #f0f8ff;
    }

    td a:hover {
        transform: translateY(-1px);
        color: #0d47a1;
        text-shadow: 0 0 6px rgba(30,136,229,0.35);
    }

    .dark-mode table {
        background: var(--bg-table-dark);
    }

    .dark-mode thead th {
        background: #111827;
        color: #e5e7eb;
        border-color: var(--border-dark);
    }

    .dark-mode th, .dark-mode td {
        border-color: var(--border-dark);
    }

    .dark-mode td:hover {
        background: #1f2937;
    }

    .dark-mode a {
        color: var(--accent-dark);
    }

    .dark-mode td a:hover {
        color: #e5e7eb;
        text-shadow: 0 0 6px rgba(148,163,184,0.6);
    }

    .show-more-wrapper {
        text-align: center;
        padding: 8px 0 14px;
        background: linear-gradient(to bottom, rgba(15,23,42,0.02), transparent);
    }

    .show-more-btn {
        border: none;
        background: transparent;
        color: var(--accent);
        cursor: pointer;
        font-size: 13px;
        padding: 4px 10px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: background var(--transition-fast), color var(--transition-fast), transform 0.1s ease;
    }

    .show-more-btn:hover {
        text-decoration: underline;
        transform: translateY(-1px);
        background: rgba(30,136,229,0.06);
    }

    .dark-mode .show-more-btn {
        color: var(--accent-dark);
        background: rgba(15,23,42,0.7);
    }

    .dark-mode .show-more-btn:hover {
        background: rgba(30,64,175,0.9);
    }

    .extra-row {
        display: none;
    }

    .site-footer {
        text-align: center;
        padding: 16px 12px 22px;
        font-size: 13px;
        color: var(--text-muted);
        border-top: 1px solid #ccc;
        margin-top: 10px;
        background: rgba(255,255,255,0.9);
    }

    .site-footer a {
        color: var(--accent);
        text-decoration: none;
    }

    .site-footer a:hover {
        text-decoration: underline;
    }

    .dark-mode .site-footer {
        color: var(--text-muted-dark);
        border-top: 1px solid #374151;
        background: #020617;
    }

    .dark-mode .site-footer a {
        color: var(--accent-dark);
    }

    #noResultsRow {
        max-width: 1400px;
        margin: 10px auto 0;
        font-size: 14px;
        border-radius: var(--radius-md);
        background: rgba(148,163,184,0.12);
    }

    .dark-mode #noResultsRow {
        background: rgba(55,65,81,0.9);
        color: #e5e7eb;
    }

    @keyframes globeIntro {
        0% {
            opacity: 0;
            transform: translateY(10px) scale(0.96);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 900px) {
      .header-title {
          font-size: 26px;
      }
      .header-sub {
          font-size: 13px;
      }
      th, td {
          font-size: 13px;
          padding: 8px;
      }
    }

    @media (max-width: 640px) {
      .table-card-inner {
          border-radius: var(--radius-md);
      }
      table, thead, tbody, th, td, tr {
        display: block;
      }
      thead {
        display: none;
      }
      tr.data-row, tr.extra-row {
        margin: 0 0 12px;
        border-radius: var(--radius-md);
        overflow: hidden;
        border: 1px solid var(--border-light);
        background: var(--bg-table);
      }
      .dark-mode tr.data-row,
      .dark-mode tr.extra-row {
        border-color: var(--border-dark);
        background: #020617;
      }
      tr.data-row td, tr.extra-row td {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        align-items: center;
        border: none;
        padding: 10px 12px;
        width: 100%;
      }
      tr.data-row td + td,
      tr.extra-row td + td {
        border-top: 1px solid rgba(148,163,184,0.35);
      }
      .dark-mode tr.data-row td + td,
      .dark-mode tr.extra-row td + td {
        border-top: 1px solid rgba(55,65,81,0.9);
      }
      td a {
        width: 100%;
        justify-content: flex-start;
      }
      .show-more-wrapper {
        text-align: center;
        padding: 6px 0 10px;
      }
      .table-card {
        box-shadow: 0 10px 30px rgba(15,23,42,0.18);
      }
      .table-container {
        padding: 0;
      }
      .table-page-wrapper {
        padding-inline: 10px;
      }
    }

/* Google Programmable Search styling */
.search-wrap {
    width: min(520px, 90vw);
}
.gcse-search {
    width: 100%;
}
.gsc-control-cse,
.gsc-control-cse-en {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.gsc-input-box {
    border-radius: 999px !important;
}
.gsc-search-button-v2 {
    border-radius: 999px !important;
}
.dark-mode .gsc-control-cse,
.dark-mode .gsc-control-cse-en {
    background: transparent !important;
    border: none !important;
}


.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

#searchBar {
    width: min(420px, 80vw);
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform 0.1s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 6px 16px rgba(15, 23, 42, 0.25);
}
#searchBar:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 8px 20px rgba(15, 23, 42, 0.35);
    transform: translateY(-1px);
}
.search-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: white;
    color: var(--accent);
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}
.dark-mode #searchBar {
    background: #020617;
    color: white;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.7), 0 6px 16px rgba(15, 23, 42, 0.9);
}
.dark-mode .search-btn {
    background: #111827;
    color: var(--accent-dark);
}


.section-title {
    max-width: 1400px;
    margin: 4px auto -14px;
    padding: 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px 0;
}

.quick-nav a {
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: white;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background var(--transition-fast), color var(--transition-fast);
}

.quick-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

.table-card {
    margin-bottom: 8px;
}

td {
    transition: transform 0.2s ease, background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow 0.2s ease;
    transform-origin: center;
}

td:hover {
    background: #f0f8ff;
    transform: scale(1.01);
    z-index: 1;
}

#topBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bg-header);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background var(--transition-fast);
    z-index: 50;
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#topBtn:hover {
    background: var(--bg-header-dark);
}

.dark-mode .section-title {
    color: #e5e7eb;
}

.dark-mode .quick-nav a {
    background: #111827;
    color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.dark-mode #topBtn {
    background: var(--bg-header-dark);
    color: #e5e7eb;
}

@media (max-width: 640px) {
    .section-title {
        font-size: 18px;
        padding: 0 10px;
        margin: 2px auto -8px;
    }

    .quick-nav {
        justify-content: flex-start;
        gap: 8px;
        padding-inline: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .quick-nav a {
        white-space: nowrap;
    }

    td:hover {
        transform: none;
    }
}


.section-title {
    max-width: 1400px;
    margin: 2px auto -10px;
    padding-left: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    scroll-margin-top: 20px;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eaf3ff;
    border-bottom: 1px solid rgba(148,163,184,0.35);
}

.quick-nav a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: white;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.quick-nav a:hover {
    background: #dbeafe;
}

.table-card td {
    transition: transform 0.18s ease, background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.table-card td:hover {
    transform: scale(1.01);
}

#topBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#topBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.footer-line {
    margin: 4px 0;
    line-height: 1.7;
}

.dark-mode .section-title {
    color: #e5e7eb;
}

.dark-mode .quick-nav {
    background: #0f172a;
    border-bottom: 1px solid #1f2937;
}

.dark-mode .quick-nav a {
    background: #111827;
    color: var(--accent-dark);
}

.dark-mode #topBtn {
    background: #2563eb;
}

@media (max-width: 640px) {
  .section-title {
      font-size: 18px;
      padding-left: 4px;
  }

  .quick-nav {
      gap: 8px;
      padding: 10px;
  }

  .quick-nav a {
      font-size: 12px;
      padding: 7px 10px;
  }
}
