/* ============================
   RESET + FONT
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body.dark-mode {
  background: #0e0e0e;
  color: #eee;
}

/* ============================
   MONOCHROME THEME
============================ */
:root {
  --primary: #ffffff;         /* putih aesthetic */
  --primary-dark: #dcdcdc;    /* putih soft */
  --bg-dark: #0e0e0e;         /* hitam deep */
  --sidebar: #131313;         /* hitam gelap */
  --card: #1a1a1a;            /* panel abu gelap */
  --text: #fafafa;            /* putih */
  --text-soft: #b5b5b5;       /* abu terang */
  --shadow-soft: 0 0 25px rgba(255, 255, 255, 0.10);
}

/* ============================
   SIDEBAR
============================ */
.sidebar {
  width: 240px;
  height: 100vh;
  background: var(--sidebar);
  padding: 25px;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

.sidebar .brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar nav a {
  text-decoration: none;
  font-size: 16px;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 10px;
  transition: 0.25s ease;
}

.sidebar nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.sidebar nav a.active {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 15px rgba(255,255,255,0.25);
}

/* ============================
   CONTENT AREA
============================ */
.app {
  margin-left: 240px;
  padding: 30px;
}

.dash-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #fff;
}

/* ============================
   CARDS
============================ */
.cards {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
}

.card-aesthetic {
  background: var(--card);
  padding: 25px;
  border-radius: 18px;
  width: 240px;
  transition: 0.3s;
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.04);
}

.card-aesthetic:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,255,255,0.2);
}

/* ============================
   BUTTON UTAMA
============================ */
.btn-primary,
.btn-dashboard {
  background: #ffffff;
  color: #000;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-primary:hover,
.btn-dashboard:hover {
  background: #dcdcdc;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255,255,255,0.35);
}

/* ============================
   TABLE (Produk)
============================ */
.table-wrap {
  background: var(--card);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(255,255,255,0.06);
}

thead th {
  padding: 12px;
  color: #fff;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: 0.25s;
}

tbody tr:hover {
  background: rgba(255,255,255,0.08);
}

td {
  padding: 12px;
}

/* Tombol Aksi Monokrom */
.edit-btn, .delete-btn {
  padding: 7px 12px;
  border-radius: 8px;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.edit-btn {
  background: #bfbfbf;
  color: #000;
}

.edit-btn:hover {
  background: #a6a6a6;
}

.delete-btn {
  background: #333;
}

.delete-btn:hover {
  background: #555;
}

/* ============================
   LOGIN PAGE
============================ */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--bg-dark);
}

.login-container {
  width: 850px;
  height: 500px;
  background: var(--card);
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.login-left img {
  height: 100%;
  width: 400px;
  object-fit: cover;
  filter: grayscale(100%);
}

.login-right {
  flex: 1;
  padding: 45px;
}

.login-right h2 {
  color: #fff;
}

.input-wrap {
  margin-bottom: 18px;
}

.input-wrap label {
  display: block;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 5px;
}

.input-wrap input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #1a1a1a;
  color: #fff;
  transition: 0.25s;
}

.input-wrap input:focus {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.btn-login-hover {
  width: 100%;
  background: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  color: #000;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.25s;
}

.btn-login-hover:hover {
  background: #dcdcdc;
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

.note {
  margin-top: 10px;
  color: #aaa;
  font-size: 13px;
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .app {
    margin-left: 200px;
  }
  .cards {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 10px;
    z-index: 10;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 10px;
  }

  .app {
    margin-left: 0;
    padding-top: 110px;
  }

  .cards {
    flex-direction: column;
  }

  .card-aesthetic {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .login-container {
    flex-direction: column;
    width: 90%;
    height: auto;
  }

  .login-left img {
    width: 100%;
    height: 220px;
  }

  .login-right {
    padding: 25px;
  }

  .dash-title {
    font-size: 24px;
  }

  table th, table td {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .sidebar nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .btn-primary,
  .btn-dashboard {
    width: 100%;
  }

  .table-wrap {
    padding: 15px;
  }

  table {
    font-size: 12px;
  }
}
