* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0e0f11;
  color: #ffffff;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #0d1117;
  color: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: auto
}

.nav-left {
  display: flex;
}

.nav-right {
  display: flex;
  flex-direction: row-reverse;
  margin-left: auto
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
}

/* Menu desktop */
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.nav-menu li a:hover {
  color: #caff00;
}

/* Toggle Theme */
.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d1117;
    flex-direction: column;
    display: none;
    gap: 0px;
    z-index: 999;
  }

  .nav-menu li a {
    padding: 12px 16px;
    display: block;
    border-top: 1px solid #222;
  }

  .nav-menu.show {
    display: flex;
  }
  
}

.light-mode {
  background: #f5f5f5;
  color: #000;
}

.light-mode .navbar {
  background: #ffffff;
  color: #000;
}

.light-mode .nav-menu li a {
  color: #000;
}


/* Container */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

/* Header */
.header-icon {
  background: #caff00;
  color: #000;
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.header p {
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* Search */
.search-box {
  margin: 30px auto;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  background: #1a1c20;
  color: #fff;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tab {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.tab.active {
  background: #caff00;
  color: #000;
}

.tab.secondary {
  background: #1a1c20;
  color: #aaa;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.filter {
  padding: 8px 16px;
  border-radius: 20px;
  background: #1a1c20;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.filter.active {
  background: #caff00;
  color: #000;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #15171b;
  padding: 20px;
  border-radius: 14px;
  text-align: left;
  position: relative;
}

.card h3 {
  margin: 20px 0 10px;
}

.card p {
  color: #aaa;
  font-size: 14px;
}

/* Badge */
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.pemula {
  background: rgba(202, 255, 0, 0.15);
  color: #caff00;
}

.analisa {
  background: rgba(0, 170, 255, 0.15);
  color: #00aaff;
}

.strategi {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
}

.time {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: #888;
}

.nav-menu a {
  text-decoration: none;
  color: #aaa;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-menu a.active {
  color: #caff00;
  font-weight: 600;
}

.card {
  transition: all 0.3s ease;
}

/* Navbar Active */
.nav-menu a {
  text-decoration: none;
  color: #aaa;
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.3s;
}

.nav-menu a.active {
  background: rgba(202, 255, 0, 0.15);
  color: #caff00;
  font-weight: 600;
}

.nav-menu a:hover {
  color: #fff;
}

/* Hero Section */

.hero {
  min-height: 40vh; /* turunin */
  padding: 80px 20px 40px; /* atas | kiri kanan | bawah */
}

.badge-hero {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: #1a1c20;
  color: #aaa;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  margin: 20px 0;
}

.hero h1 span {
  color: #caff00;
}

.hero p {
  color: #aaa;
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: #caff00;
  color: #000;
}

.btn.secondary {
  border: 1px solid #333;
  color: #fff;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #aaa;
  font-size: 14px;
}

/* Default DARK */
:root {
  --bg: #0e0f11;
  --bg-soft: #15171b;
  --text: #ffffff;
  --text-soft: #aaa;
  --accent: #caff00;
}

/* LIGHT MODE */
body.light {
  --bg: #f6f7f9;
  --bg-soft: #ffffff;
  --text: #111;
  --text-soft: #555;
  --accent: #8ad900;
}

/* Global */
body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

/* Navbar */
.navbar {
  background: var(--bg-soft);
}

/* Menu */
.nav-menu a {
  color: var(--text-soft);
}

.nav-menu a.active {
  background: rgba(202,255,0,0.2);
  color: var(--accent);
}

/* Button */
.btn.primary {
  background: var(--accent);
  color: #000;
}

/* Card */
.card {
  background: var(--bg-soft);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 40px;
}

header .icon {
  background: #c6ff00;
  color: #000;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

header p {
  color: #aaa;
  max-width: 600px;
  margin: auto;
}

/* SEARCH BAR */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 32px auto 48px; /* ATAS | KIRI-KANAN | BAWAH */
}

.search-bar input {
  width: 100%;
  padding: 14px 50px 14px 18px; /* ruang untuk tombol */
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #1f1f1f;
  color: #fff;
}

.search-bar input::placeholder {
  color: #aaa;
}

/* Tombol search di DALAM input */
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #aaab;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.search-btn:hover {
  background: #c6ff00;
}


/* INFO BOXES */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.info-box {
  background: #161616;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #222;
}

.info-box .icon {
  color: #c6ff00;
  margin-bottom: 10px;
}

/* TABLE */
.data-table {
  background: #141414;
  padding: 24px;
  border-radius: 18px;
  overflow-x: auto;
}

.data-table h2 {
  margin-bottom: 6px;
}

.data-table p {
  color: #aaa;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: #1f1f1f;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #222;
}

tbody tr:hover {
  background: #1a1a1a;
}

/* HEADER */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header .icon {
  background: #c6ff00;
  color: #000;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* DISCLAIMER */
.disclaimer {
  border: 1px solid rgba(198,255,0,.4);
  background: rgba(198,255,0,.06);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.disclaimer strong {
  color: #c6ff00;
}

/* GRID */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 28px;
}

/* CARD */
.stock-card {
  background: #161616;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #222;
}

.stock-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}

.stock-header h3 {
  font-size: 20px;
}

.stock-header span {
  font-size: 13px;
  color: #aaa;
}

/* BADGE */
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.buy {
  background: rgba(0,200,0,.2);
  color: #7CFF7C;
}

.badge.hold {
  background: rgba(255,200,0,.2);
  color: #FFD966;
}

.badge.sell {
  background: rgba(255, 0, 0, .25);
  color: #FF5C5C;
}

/* SECTOR */
.sector {
  background: #202020;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 18px;
}

/* PRICE */
.price-box {
  display: flex;
  justify-content: space-between;
  background: #1b1b1b;
  padding: 16px;
  border-radius: 14px;
}

.price-box small {
  color: #aaa;
  font-size: 11px;
}

.price-box strong {
  display: block;
  margin-top: 4px;
}

.price-box .target {
  color: #c6ff00;
}

/*---------------------------------------------------*/
/* ===== FOOTER MODERN ===== */

.footer {
  background: var(--bg-soft);
  color: var(--text);
  padding: 40px 20px 20px;
  text-align: center;
}

/* Title */
.footer-info h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--accent);
}

/* List */
.footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-info ul li {
  margin-bottom: 10px;
}

/* Link */
.footer-info ul li a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-info ul li a:hover {
  color: var(--accent);
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.7;
}

.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--bg-soft)
  );
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card {
  cursor: pointer;
}

.hero {
  padding: 40px 8% 30px;
  text-align: center;
  color: #fff;
}

.news-section {
  padding: 30px 8% 80px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Card utama */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

/* Gambar */
.news-card img {
  width: 100%;
  height: 160px;              /* SAMAKAN TINGGI GAMBAR */
  object-fit: contain;        /* logo tidak terpotong */
  background: #f5f5f5;
  padding: 20px;
}

/* Konten */
.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;                    /* isi memenuhi card */
}

/* Tanggal */
.news-date {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

/* Judul */
.news-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Deskripsi */
.news-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Tombol selalu di bawah */
.news-btn {
  margin-top: auto;           /* INI KUNCI SEJAJAR */
  font-weight: 600;
  color: #2563eb;
}

/*-----------------------------------*/
/* ===== DROPDOWN ANALISA SAHAM DAN REKOMENDASI SAHAM ===== */
.dropdown {
  position: relative;
}

/* Tombol Analisa Saham */
.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #caff00; /* warna teks sama */
}

/* Container dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  padding: 6px;
  background: transparent;
  z-index: 9999;
}

/* Item dropdown (SAMA KAYA EDUKASI) */
.dropdown-content a {
  display: inline-block;
  background-color: #1f2d16; /* background Edukasi */
  color: #caff00;           /* teks Edukasi */
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover */
.dropdown-content a:hover {
  background-color: #2f4220;
}

/* Aktif */
.dropdown-content.show {
  display: block;
}

.btn-kembali {
  position: fixed;
  top: 90px;          /* sesuaikan dengan tinggi navbar */
  left: 24px;

  display: inline-flex;
  align-items: center;

  padding: 8px 18px;
  background-color: #1f2d16;
  color: #caff00;

  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;

  z-index: 1000;
  transition: all 0.2s ease;
}

.btn-kembali:hover {
  background-color: #2f4220;
  transform: translateX(-3px);
}

/*--------------Buat  scrol filter tabel---------------------*/
.data-table {
  max-width: 100%;
}

.table-wrapper {
  max-height: 350px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #ddd;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px 10px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

th {
  background: #f5f5f5;
}

.pagination {
  margin-top: 10px;
  text-align: center;
}

.pagination button {
  padding: 6px 12px;
  margin: 0 5px;
  cursor: pointer;
}

/* ===== TABLE CONTAINER ===== */
.table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 12px;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px; /* biar tidak sempit */
  color: #f1f1f1;
  font-size: 14px;
}

/* ===== HEADER ===== */
thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, #1c1c1c, #141414);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
}

/* ===== BODY ===== */
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

/* ===== ZEBRA STRIPING ===== */
tbody tr:nth-child(even) {
  background-color: #141414;
}

tbody tr:nth-child(odd) {
  background-color: #101010;
}

/* ===== HOVER ===== */
tbody tr:hover {
  background-color: rgba(180, 255, 0, 0.08);
}

/* ===== ALIGN ANGKA ===== */
tbody td:nth-child(n+4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== KODE SAHAM ===== */
tbody td:first-child {
  font-weight: 700;
  color: #fff;
}

/* ===== PAGINATION ===== */
.pagination {
  margin-top: 16px;
  text-align: center;
}

.pagination button {
  background: #1c1c1c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:hover {
  background: #b6ff00;
  color: #000;
}

.pagination span {
  margin: 0 10px;
  color: #ccc;
}

/* ===== Berita ===== */
.news-heading {
  margin: 32px 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.news-heading.old {
  color: #b0b0b0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== Note Rekomendasi ===== */

.note-section {
  margin: 48px auto 26px;
  max-width: 1200px;
  padding: 0 16px;
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

.note-icon {
  font-size: 18px;
  margin-top: 2px;
}

.note-box strong {
  color: #facc15; /* kuning lembut */
}

/* Waktu Tabel */

.table-footer-date {
  margin-top: 10px;
  text-align: left;
  font-size: 14px;
  color: #b6ff00; /* abu-abu lembut */
}

.table-footer-date span {
  color: #d1d5db; /* putih seperti gambar */
  font-weight: 600;
}

.table-footer-datee {
  max-width: 1100px;   /* SAMAKAN dengan lebar tabel */
  margin: 10px auto 0;
  text-align: left;
  font-size: 14px;
  color: #9aff00;
}

.table-footer-datee span {
  color: #d1d5db; /* putih seperti gambar */
  font-weight: 600;
}

