
* {
  box-sizing: border-box;
}

body,
html,
.portal-header,
.kotak-link,
.info-card,
.theme-btn,
.theme-btn-portal,
.portal-nav a,
.styled-form input,
.styled-form select,
.styled-form textarea,
.social-btn,
.club-logo-img {
  /* Smooth transition bila tukar mode*/
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f1115;
  color: #f1f5f9;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

/* Standard untuk index.html */
body.index-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Standard untuk content */
body.content-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================
   2. INDEX.HTML (Menu Utama / Landing Page)
   ========================================= */
.latihan-menu {
  width: 100%;
  max-width: 950px;
  padding: 20px 0;
  text-align: center;
}

.tajuk-utama h1 {
  font-size: 30px;
  color: #f8fafc;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 12px;
}

.tajuk-utama p {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 45px;
}

.menu-kotak {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Kotaks dekat index.html */
.kotak-link {
  background-color: #181b21;
  border: 1px solid #2a2f3a;
  border-top: 4px solid #3b82f6;
  border-radius: 12px;
  width: 195px;
  min-height: 165px;
  padding: 24px 16px;
  text-decoration: none;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.kotak-link h2 {
  font-size: 17px;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.kotak-link p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Hover Effect */
.kotak-link:hover {
  background-color: #212630;
  border-color: #3b82f6;
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.kotak-link:hover h2 {
  color: #60a5fa;
}

/* Button mode */
.theme-btn {
  margin-top: 40px;
  background-color: #181b21;
  color: #94a3b8;
  border: 1px solid #2a2f3a;
  border-radius: 20px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-btn:hover {
  border-color: #3b82f6;
  color: #f8fafc;
  transform: translateY(-2px);
}

/* =========================================
   3. CONTENT PAGES & HEADER
   ========================================= */
.halaman-kandungan {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0 40px 0;
  text-align: left;
}

/* Navigation Bar */
.portal-header {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #181b21;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.portal-nav {
  display: flex;
  gap: 20px;
}

.portal-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.portal-nav a:hover {
  color: #60a5fa;
}

/* --- Active Navbar Indicator --- */
.portal-nav a {
  position: relative;
}

.portal-nav a.active {
  color: #60a5fa;
  font-weight: 600;
}

.portal-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.portal-nav a.active::after {
  background-color: #3b82f6;
}

/* Button theme dekat navbar */
.theme-btn-portal {
  background-color: #212630;
  color: #f8fafc;
  border: 1px solid #2a2f3a;
  border-radius: 20px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-btn-portal:hover {
  border-color: #3b82f6;
  background-color: #2a2f3a;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  color: #f8fafc;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.page-header .tagline {
  font-size: 15px;
  color: #60a5fa;
  margin: 0 0 14px 0;
}

.page-header .intro-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 16px auto;
}

mark {
  background-color: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
}

.cta-link {
  display: inline-block;
  color: #60a5fa;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed #3b82f6;
  padding-bottom: 2px;
}

.cta-link:hover {
  color: #93c5fd;
}

.kelab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Info Cards */
.info-card {
  background-color: #181b21;
  border: 1px solid #2a2f3a;
  border-top: 3px solid #3b82f6;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
}

.info-card h2,
.info-card h3 {
  font-size: 16px;
  color: #f8fafc;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.info-card p,
.info-card li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

.info-card ul,
.info-card ol {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.nested-list > li {
  margin-bottom: 8px;
}

/* Profile dan gambar dekat about.html */
.about-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.club-logo-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #2a2f3a;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.profile-img-link:hover .club-logo-img {
  transform: scale(1.04);
  border-color: #3b82f6;
}

/* Jadual */
.table-wrapper {
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 10px 12px;
  border: 1px solid #2a2f3a;
}

.styled-table th {
  background-color: #212630;
  color: #f8fafc;
  font-weight: 600;
}

.styled-table .table-banner {
  background-color: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  text-align: center;
}

.styled-table td {
  color: #cbd5e1;
}

.styled-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

.merged-cell {
  background-color: rgba(59, 130, 246, 0.06);
  font-weight: 600;
  color: #93c5fd !important;
  text-align: center;
}

/* Button untuk register. Guna Call-To-Action (CTA Box) */
.cta-box {
  text-align: center;
  margin-top: 28px;
}

.cta-box p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.primary-cta-btn {
  display: inline-block;
  background-color: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 24px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
  transition: all 0.25s ease;
}

.primary-cta-btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

/* =========================================
   4. REGISTER.HTML
   ========================================= */
.form-container {
  max-width: 720px;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group > label,
.group-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.styled-form input[type="text"],
.styled-form input[type="number"],
.styled-form input[type="tel"],
.styled-form input[type="email"],
.styled-form select,
.styled-form textarea {
  width: 100%;
  background-color: #0f1115;
  color: #f1f5f9;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* kod telefon (+60) */
.phone-input-group {
  display: flex;
  align-items: center;
}

.phone-prefix {
  background-color: #212630;
  color: #94a3b8;
  border: 1px solid #2a2f3a;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.phone-input-group input[type="tel"] {
  border-radius: 0 8px 8px 0;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
  cursor: pointer;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.agreement-box {
  padding-top: 8px;
  border-top: 1px solid #2a2f3a;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-submit,
.btn-reset {
  padding: 11px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  flex: 2;
}

.btn-submit:hover {
  background-color: #2563eb;
}

.btn-reset {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid #2a2f3a;
  flex: 1;
}

.btn-reset:hover {
  border-color: #64748b;
  color: #f8fafc;
}

/* =========================================
   5. LINKTREE.HTML
   ========================================= */
.linktree-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 0 40px 0;
}

.linktree-card {
  text-align: center;
  padding: 32px 26px;
}

.linktree-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.linktree-card h1 {
  font-size: 20px;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.linktree-card .tagline {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 26px 0;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.social-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f1115;
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.social-handle {
  font-size: 12px;
  color: #60a5fa;
}

.social-btn:hover {
  border-color: #3b82f6;
  background-color: #212630;
  transform: translateY(-2px);
}

.internal-links {
  padding-top: 18px;
  border-top: 1px solid #2a2f3a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.link-divider {
  color: #475569;
  font-size: 12px;
}

/* =========================================
   6. LIGHT MODE OVERRIDES
   ========================================= */

/* Tukar warna background keseluruhan halaman body & html kepada light mode */
html.light-mode body {
  background-color: #f0f4f8;
}

html.light-mode {
  background-color: #f0f4f8;
  color: #1e293b;
}

html.light-mode .tajuk-utama h1,
html.light-mode .page-header h1,
html.light-mode .info-card h2,
html.light-mode .info-card h3 {
  color: #1a365d;
}

html.light-mode .tajuk-utama p {
  color: #555555;
}

html.light-mode .page-header .tagline,
html.light-mode .cta-link {
  color: #2563eb;
}

html.light-mode .page-header .intro-text,
html.light-mode .info-card p,
html.light-mode .info-card li {
  color: #334155;
}

html.light-mode .kotak-link,
html.light-mode .info-card {
  background-color: #ffffff;
  border-color: #d9e2ec;
  color: #1a365d;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.06);
}

html.light-mode .kotak-link p {
  color: #627d98;
}

html.light-mode .kotak-link:hover {
  background-color: #f8fafc;
  border-color: #3b82f6;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

html.light-mode .kotak-link:hover h2 {
  color: #2563eb;
}

html.light-mode .theme-btn {
  background-color: #ffffff;
  color: #1a365d;
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.light-mode mark {
  background-color: #dbeafe;
  color: #1e40af;
}

html.light-mode .styled-table th,
html.light-mode .styled-table td {
  border-color: #d9e2ec;
}

html.light-mode .styled-table th {
  background-color: #f1f5f9;
  color: #1a365d;
}

html.light-mode .styled-table .table-banner {
  background-color: #dbeafe;
  color: #1e40af;
}

html.light-mode .styled-table td {
  color: #334155;
}

html.light-mode .merged-cell {
  background-color: #eff6ff;
  color: #1d4ed8 !important;
}

html.light-mode .club-logo-img {
  border-color: #cbd5e0;
}

html.light-mode .linktree-card h1 {
  color: #1a365d;
}

html.light-mode .linktree-card .tagline {
  color: #64748b;
}

html.light-mode .social-btn {
  background-color: #f8fafc;
  border-color: #cbd5e0;
}

html.light-mode .social-title {
  color: #1a365d;
}

html.light-mode .social-handle {
  color: #2563eb;
}

html.light-mode .social-btn:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

html.light-mode .internal-links {
  border-top-color: #e2e8f0;
}

html.light-mode .portal-header {
  background-color: #ffffff;
  border-color: #d9e2ec;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.06);
}

html.light-mode .logo-text {
  color: #1a365d;
}

html.light-mode .portal-nav a {
  color: #627d98;
}

html.light-mode .portal-nav a:hover {
  color: #2563eb;
}

html.light-mode .theme-btn-portal {
  background-color: #f1f5f9;
  color: #1a365d;
  border-color: #cbd5e0;
}

/* Light Mode Overrides untuk Active Navbar */
html.light-mode .portal-nav a.active {
  color: #2563eb;
}

html.light-mode .portal-nav a.active::after {
  background-color: #2563eb;
}

/* Light Mode Overrides untuk  Register.html */
html.light-mode .styled-form input[type="text"],
html.light-mode .styled-form input[type="number"],
html.light-mode .styled-form input[type="tel"],
html.light-mode .styled-form input[type="email"],
html.light-mode .styled-form select,
html.light-mode .styled-form textarea {
  background-color: #ffffff;
  color: #1e293b;
  border-color: #cbd5e0;
}

html.light-mode .phone-prefix {
  background-color: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e0;
}

html.light-mode .form-group > label,
html.light-mode .group-title {
  color: #1a365d;
}

html.light-mode .option-item {
  color: #334155;
}

html.light-mode .agreement-box {
  border-top-color: #d9e2ec;
}

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
  .portal-header {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .portal-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .logo-text {
    display: none;
  }
}

@media (max-width: 650px) {
  .tajuk-utama h1,
  .page-header h1 {
    font-size: 22px;
  }

  .tajuk-utama p {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .menu-kotak {
    gap: 16px;
  }

  .kotak-link {
    width: 100%;
    max-width: 340px;
    min-height: 120px;
    padding: 20px;
  }

  .kelab-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 20px;
  }

  .about-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .form-row,
  .grid-options {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }
}