/* ========================= */
/* RESET */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* ========================= */
/* BODY */
/* ========================= */
body {
  background: radial-gradient(circle at top, #1a1a2e, #0b0f1a);
  color: white;
}

/* ========================= */
/* NAVBAR */
/* ========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.navbar a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
}

.navbar a:hover {
  color: gold;
}

/* ========================= */
/* HERO */
/* ========================= */
.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero button {
  margin-top: 20px;
  padding: 12px 24px;
  background: gold;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* ========================= */
/* GRID CARD */
/* ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.badge {
  background: linear-gradient(90deg, #ffd700, #ffae00);
  color: black;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: bold;
}

.user {
  font-weight: 600;
}

.game {
  font-size: 12px;
  color: #aaa;
}

.win {
  color: #ffd700;
  font-weight: bold;
}

/* ========================= */
/* ADMIN DASHBOARD LAYOUT */
/* ========================= */
.admin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  align-items: start;
}

/* ========================= */
/* FORM */
/* ========================= */
.admin-container {
  padding: 25px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.admin-container h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}

.admin-container input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-container button {
  width: 100%;
  padding: 12px;
  background: gold;
  color: black;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.admin-container button:hover {
  transform: scale(1.03);
}

/* ========================= */
/* HISTORY */
/* ========================= */
.history-container {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  max-height: 650px;
  overflow-y: auto;
}

/* ========================= */
/* TABLE */
/* ========================= */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table th {
  text-align: left;
  padding: 14px;
  color: #aaa;
  font-weight: 500;
}

.history-table td {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}

/* hover */
.history-table tr:hover {
  background: rgba(255,255,255,0.03);
}

/* image */
.history-table img {
  width: 70px;
  border-radius: 8px;
}

/* game highlight */
.history-table td:nth-child(3) {
  color: cyan;
  font-weight: 600;
}

/* win highlight */
.history-table td:nth-child(4) {
  color: #00ff88;
  font-weight: bold;
}

/* ========================= */
/* BUTTON */
/* ========================= */
.btn-edit {
  background: gold;
  color: black;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 5px;
  font-weight: bold;
}

.btn-delete {
  background: red;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
/* ========================= */
/* FIX LAYOUT FULL WIDTH */
/* ========================= */

.admin-layout {
  grid-template-columns: 500px 1fr; /* form lebih gede */
  max-width: 1400px; /* lebih lebar */
}

/* ========================= */
/* FORM JADI 2X LEBIH GEDE */
/* ========================= */

.admin-container {
  padding: 35px;
}

.admin-container h2 {
  font-size: 24px;
}

.admin-container input {
  padding: 16px;
  font-size: 15px;
}

.admin-container button {
  padding: 16px;
  font-size: 16px;
}

/* ========================= */
/* HISTORY FULL & NO SCROLL SAMPING */
/* ========================= */

.history-container {
  max-height: none; /* hilangin batas tinggi */
  overflow: visible; /* ga scroll dalam box */
}

/* ========================= */
/* TABLE FULL WIDTH */
/* ========================= */

.history-table {
  width: 100%;
  table-layout: fixed;
}

.history-table th,
.history-table td {
  word-break: break-word;
}

/* kolom biar proporsional */
.history-table th:nth-child(1),
.history-table td:nth-child(1) {
  width: 90px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  width: 140px;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 220px;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  width: 120px;
}

.history-table th:nth-child(5),
.history-table td:nth-child(5) {
  width: 180px;
}

/* ========================= */
/* BUTTON FULL & RAPI */
/* ========================= */

.btn-edit,
.btn-delete {
  width: 100%;
  margin-bottom: 5px;
}
/* ========================= */
/* HEADER DASHBOARD */
/* ========================= */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 10px 20px;
}

.admin-header .title {
  font-size: 24px;
  font-weight: bold;
}

/* logout button */
.btn-logout {
  background: transparent;
  border: 1px solid red;
  color: red;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-logout:hover {
  background: red;
  color: white;
}
/* ========================= */
/* NAVBAR */
/* ========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: gold;
}

.nav-link {
  opacity: 0.7;
}

/* ========================= */
/* HERO BOX */
/* ========================= */
.hero-box {
  background: rgba(255,255,255,0.05);
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.hero-box h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-box p {
  opacity: 0.7;
  margin-bottom: 20px;
}

/* ========================= */
/* SEARCH */
/* ========================= */
.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.search-box input {
  padding: 10px;
  width: 300px;
  border-radius: 8px;
  border: none;
}

.search-box button {
  padding: 10px 20px;
  background: gold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ========================= */
/* FILTER */
/* ========================= */
.filter {
  text-align: center;
  margin: 20px 0;
}

#filter-list button {
  margin: 5px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid cyan;
  color: cyan;
  border-radius: 6px;
  cursor: pointer;
}

#filter-list button:hover {
  background: cyan;
  color: black;
}
.logo img {
  height: 40px;
}
.card {
  transition: 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.06) translateY(-5px);
  box-shadow: 
    0 0 15px rgba(255,215,0,0.4),
    0 0 40px rgba(255,215,0,0.2);
}
.card img {
  transition: 0.3s;
}

.card:hover img {
  transform: scale(1.08);
}
.detail-image img:hover {
  transform: scale(1.02);
}
.detail-info {
  padding: 40px; /* dari 30 → 40 */
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ========================= */
/* GOLD STROKE GLOBAL */
/* ========================= */

.gold-box {
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: 0.3s;
}

/* efek glow pas hover */
.gold-box:hover {
  border: 1px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.gold-box {
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.15);
}
/* ========================= */
/* FIX FOOTER CENTER BAWAH */
/* ========================= */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

.footer-content:first-line {
  color: gold;
}
.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}