@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* GLOBAL */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
  color: white;
}

/* ===================== */
/* NAVBAR */
/* ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.menu a:hover {
  color: #00e6e6;
}

.btn-login {
  padding: 8px 16px;
  background: #00e6e6;
  color: black !important;
  border-radius: 8px;
}

/* ===================== */
/* HERO / HOME */
/* ===================== */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.btn-primary {
  padding: 12px 28px;
  background: #00e6e6;
  color: black;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
}

/* ===================== */
/* LOGIN PAGE */
/* ===================== */
.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 40px;
  width: 360px;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  text-align: center;
}

.login-card h2 {
  margin-bottom: 8px;
}

.login-card p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 25px;
}

.login-card input {
  width: 100%;
  padding: 13px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

.login-card button {
  width: 100%;
  padding: 13px;
  background: #00e6e6;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.login-card button:hover {
  background: #00bfbf;
}

/* ===================== */
/* DASHBOARD */
/* ===================== */
.dashboard {
  padding: 40px 60px;
}

.dashboard h1 {
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255, 255, 255, 0.12);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card span {
  font-size: 28px;
  font-weight: bold;
}

/* ===================== */
/* SIDEBAR ADMIN */
/* ===================== */
.admin-wrapper {
  display: flex;
}

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  padding: 30px 20px;
}

.sidebar h2 {
  margin-bottom: 40px;
  text-align: center;
}

.sidebar a {
  display: block;
  padding: 12px 15px;
  margin-bottom: 12px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
  background: #00e6e6;
  color: black;
}

/* ===================== */
/* CONTENT */
/* ===================== */
.admin-content {
  flex: 1;
  padding: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-box h3 {
  font-size: 16px;
  opacity: 0.85;
}

.stat-box span {
  font-size: 32px;
  font-weight: bold;
}

.card p {
  line-height: 1.8;
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero {
  height: calc(100vh - 72px); /* 72px = tinggi navbar */
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("img/background.jpg") center/cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn-masuk {
  background: #22e3d6;
  color: #000;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.btn-masuk:hover {
  background: #1cc9bd;
}
