:root { --bg: #f8f9fa; --card: #ffffff; --text: #1a1a1a; --text-light: #666; --radius: 12px; --shadow: 0 4px 20px rgba(0,0,0,0.08); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

.hero { min-height: 80vh; display: grid; place-items: center; position: relative; background: var(--hero-bg) center/cover no-repeat; color: white; text-align: center; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0, var(--overlay)); }
.hero-content { position: relative; z-index: 1; padding: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -1px; }
.btn { display: inline-block; margin-top: 1.5rem; padding: 0.9rem 2rem; background: var(--accent); color: var(--primary); text-decoration: none; font-weight: 600; border-radius: 50px; transition: 0.3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

.gallery-wrapper { display: grid; gap: 1.2rem; margin-top: 2rem; }
.grid .gallery-wrapper { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.masonry .gallery-wrapper { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 10px; }
.masonry .gallery-item { grid-row: span var(--span, 20); }
.cinematic .gallery-wrapper { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 2rem auto; }
.cinematic .gallery-item img { height: 60vh; object-fit: cover; }

.gallery-item { background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: 0.3s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; }
.caption { padding: 0.8rem 1rem; }
.caption h3 { font-size: 1rem; color: var(--primary); }

.admin-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: var(--primary); color: white; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.full-width { grid-column: 1 / -1; }
.card { background: var(--card); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { margin-bottom: 1rem; color: var(--primary); font-size: 1.3rem; }
label { display: block; margin: 0.8rem 0 0.3rem; font-weight: 500; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 0.7rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
input[type="color"] { height: 45px; padding: 0.3rem; cursor: pointer; }
button { margin-top: 1rem; padding: 0.8rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: 0.2s; }
button:hover { opacity: 0.9; }
.btn-sm { background: var(--accent); color: var(--primary); padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-size: 0.9rem; }
.btn-del { color: #dc3545; font-size: 0.85rem; text-decoration: none; margin-left: 0.5rem; }
.alert { padding: 1rem; margin-bottom: 1rem; border-radius: 8px; background: #d1e7dd; color: #0f5132; }
.gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery-thumb { background: #f1f1f1; border-radius: 8px; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100px; object-fit: cover; }
.thumb-info { padding: 0.5rem; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; }

.auth-page { display: grid; place-items: center; min-height: 100vh; background: #f0f2f5; }
.auth-card { background: white; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 400px; }
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; color: var(--primary); }
.error { color: #dc3545; background: #f8d7da; padding: 0.5rem; border-radius: 6px; margin-bottom: 1rem; text-align: center; font-size: 0.9rem; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 8px; }
.lightbox p { color: white; margin-top: 1rem; font-size: 1.1rem; }
.close { position: absolute; top: 20px; right: 25px; color: white; font-size: 2.5rem; cursor: pointer; }

footer { text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.9rem; }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }
/* Quick Access Buttons - Hero Section */
.quick-access {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.4rem;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}
.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Footer Links - Opsi B */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.separator {
  color: #ccc;
}

/* Responsive: Stack buttons on mobile */
@media (max-width: 480px) {
  .quick-access {
    flex-direction: column;
    align-items: center;
  }
  .btn-sm {
    width: 100%;
    max-width: 220px;
  }
}
/* Admin Navigation */
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}
.btn-logout {
  background: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
}
.btn-logout:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* DEBUG: Jika ini muncul, CSS berhasil terload */
body::after {
  content: "✅ CSS Loaded";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #0f4c3a;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
}