/* ============================================ */
/* GLOBAL STYLES */
/* ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: url("https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?auto=format&fit=crop&q=80")
    center/cover fixed;
  color: #fff;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  z-index: -1;
}

/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 5px;
}

nav a {
  color: #aaa;
  text-decoration: none;
  margin-left: 40px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: 0.3s;
}

nav a:hover,
nav a.nav-active {
  color: #fff;
}

/* ============================================ */
/* PAGE LAYOUT */
/* ============================================ */

.page {
  min-height: 100vh;
  padding: 140px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s;
}

.page.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.container {
  text-align: center;
  max-width: 1400px;
  width: 100%;
}

.title {
  font-size: 90px;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 10px;
}

.tagline {
  font-size: 20px;
  color: #ccc;
  letter-spacing: 4px;
  margin-bottom: 70px;
}

/* ============================================ */
/* DASHBOARD CARDS */
/* ============================================ */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-12px);
}

.card h3 {
  font-size: 15px;
  color: #aaa;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.amount {
  font-size: 38px;
  font-weight: 800;
}

.card.profit {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.2),
    rgba(34, 197, 94, 0.15)
  );
}

.card.profit .amount {
  color: #4ade80;
}

.card.saldo,
.card.big {
  grid-column: 1/-1;
  padding: 50px;
  background: rgba(255, 255, 255, 0.09);
}

.card.saldo .amount,
.card.big .amount {
  font-size: 52px;
}

/* ============================================ */
/* CHART */
/* ============================================ */

.chart-container {
  margin-top: 90px;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

#chartBars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 5px;
  height: 200px;
  align-items: end;
  position: relative;
}

.bar {
  background: #444;
  border-radius: 4px 4px 0 0;
  width: 100%;
  transition: height 0.6s, opacity 0.3s;
  position: relative;
  cursor: pointer;
}

.bar:hover {
  opacity: 0.8;
}

.bar.income {
  background: #4ade80;
}

.bar.expense {
  background: #f87171;
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  margin-bottom: 5px;
}

.bar:hover .bar-tooltip {
  opacity: 1;
}

/* ============================================ */
/* FORMS */
/* ============================================ */

.form {
  max-width: 500px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form input,
.form select {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #444;
  border-radius: 12px;
  color: #f5f3f3;
  font-size: 16px;
}

.form input[type="text"],
.form input[type="number"],
.form input[type="url"],
.form select {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form input::placeholder {
  color: #888;
}

.form input:focus,
.form select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

.form select option {
  background: #2d2d2d;
  color: #ffffff;
}

select,
option {
  color: #999999 !important;
  background: white;
}

select option[disabled] {
  color: #999;
}

.btn-primary,
.btn-secondary {
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: #4ade80;
  color: #1a1a1a;
  flex: 1;
}

.btn-primary:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================ */
/* TRANSACTIONS LIST */
/* ============================================ */

.transaction-list > div,
.transaction-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
  border-radius: 12px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amount.income {
  color: #4ade80;
}

.amount.expense {
  color: #f87171;
}

.empty {
  opacity: 0.6;
  font-style: italic;
}

.dynamic.zero {
  color: #ccc !important;
}

.dynamic.positive {
  color: #4ade80 !important;
}

.dynamic.negative {
  color: #f87171 !important;
}

.transaction-info {
  flex-grow: 1;
  text-align: left;
}

.transaction-actions {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Delete Button */
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  transition: transform 0.2s ease-in-out;
}

.delete-btn:hover {
  transform: scale(1.1);
}

.delete-btn svg {
  width: 20px;
  height: 20px;
  fill: #f87171;
}

/* ============================================ */
/* CONFIRMATION DIALOG */
/* ============================================ */

.confirmation-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.confirmation-content {
  background: #2a2a2a;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-content h3 {
  margin-bottom: 20px;
  font-weight: 600;
}

.confirmation-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
}

.btn-confirm,
.btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.2s;
}

.btn-confirm {
  background-color: #f87171;
  color: #fff;
}

.btn-confirm:hover {
  background-color: #ef4444;
}

.btn-cancel {
  background-color: #555;
  color: #fff;
}

.btn-cancel:hover {
  background-color: #666;
}

/* ============================================ */
/* SEARCH BAR */
/* ============================================ */

.search-container {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: #888;
}

.search-input:focus {
  outline: none;
  background: rgba(80, 80, 80, 0.6);
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* ============================================ */
/* CATEGORY BUTTONS */
/* ============================================ */

.product-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.category-btn,
.category-btn-expense,
.category-btn-bahan {
  padding: 12px 35px;
  background: rgba(80, 80, 80, 0.5);
  border: none;
  border-radius: 50px;
  color: #aaa;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-size: 15px;
}

.category-btn:hover,
.category-btn-expense:hover,
.category-btn-bahan:hover {
  background: rgba(100, 100, 100, 0.6);
  color: #fff;
}

.category-btn.active,
.category-btn-expense.active,
.category-btn-bahan.active {
  background: #4ade80;
  color: #000;
  font-weight: 700;
}

/* ============================================ */
/* PRODUCTS GRID */
/* ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================ */
/* PRODUCT CARDS */
/* ============================================ */

.product-card,
.bahan-card {
  background: rgba(60, 60, 60, 0.6);
  border: 1px solid rgba(80, 80, 80, 0.8);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.product-card:hover,
.bahan-card:hover {
  transform: translateY(-8px);
  background: rgba(70, 70, 70, 0.7);
  border-color: rgba(100, 100, 100, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.product-image,
.bahan-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  background: rgba(40, 40, 40, 0.8);
}

.product-name,
.bahan-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  margin-top: 15px;
  color: #fff;
  padding: 0 20px;
}

.product-category,
.bahan-category {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  text-transform: capitalize;
  padding: 0 20px;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  padding: 0 20px;
}

.bahan-price {
  font-size: 20px;
  font-weight: 800;
  color: #fb923c;
  margin-bottom: 5px;
  padding: 0 20px;
}

.bahan-satuan {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
  padding: 0 20px;
}

.bahan-stock {
  font-size: 13px;
  color: #4ade80;
  margin-bottom: 20px;
  font-weight: 600;
  padding: 0 20px;
}

.bahan-stock.low {
  color: #f87171;
}

/* ============================================ */
/* ADD TO CART BUTTONS */
/* ============================================ */

.add-to-cart-btn,
.add-to-expense-btn,
.add-to-bahan-btn {
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px;
  background: transparent;
  border: 2px solid #4ade80;
  border-radius: 12px;
  color: #4ade80;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.add-to-cart-btn:hover,
.add-to-expense-btn:hover {
  background: #4ade80;
  color: #000;
  transform: translateY(-2px);
}

.add-to-bahan-btn {
  border-color: #fb923c;
  color: #fb923c;
}

.add-to-bahan-btn:hover {
  background: #fb923c;
  color: #000;
  transform: translateY(-2px);
}

.add-to-expense-btn {
  border-color: #f87171;
  color: #f87171;
}

.add-to-expense-btn:hover {
  background: #f87171;
  color: #000;
}

/* ============================================ */
/* CART SECTION */
/* ============================================ */

.cart-section {
  background: rgba(40, 40, 40, 0.8);
  padding: 35px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 50px auto 0;
  border: 1px solid rgba(80, 80, 80, 0.6);
}

.cart-section h3 {
  margin-bottom: 25px;
  color: #fff;
  letter-spacing: 1px;
  font-size: 20px;
  font-weight: 700;
}

.cart-items {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 25px;
}

.cart-items::-webkit-scrollbar {
  width: 8px;
}

.cart-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.3);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.5);
}

.cart-item {
  background: rgba(60, 60, 60, 0.5);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(80, 80, 80, 0.6);
}

.cart-item-info {
  flex-grow: 1;
  text-align: left;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.cart-item-price {
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(80, 80, 80, 0.5);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(100, 100, 100, 0.6);
}

.qty-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s;
  font-weight: 700;
}

.qty-btn:hover {
  color: #4ade80;
}

.qty-value {
  min-width: 35px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.remove-btn {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: rgba(248, 113, 113, 0.3);
  transform: scale(1.1);
}

.cart-summary {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #4ade80;
}

#checkoutBtn,
#expenseCheckoutBtn,
#bahanCheckoutBtn {
  width: 100%;
  padding: 16px;
  background: #4ade80;
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

#checkoutBtn:hover:not(:disabled),
#expenseCheckoutBtn:hover:not(:disabled),
#bahanCheckoutBtn:hover:not(:disabled) {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
}

#checkoutBtn:disabled,
#expenseCheckoutBtn:disabled,
#bahanCheckoutBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================ */
/* CART THEMES */
/* ============================================ */

.expense-cart {
  border: 2px solid rgba(248, 113, 113, 0.3);
}

.expense-cart h3 {
  color: #f87171;
}

.expense-total {
  color: #f87171 !important;
}

.expense-total span {
  color: #f87171;
}

.expense-btn {
  background: #f87171 !important;
}

.expense-btn:hover:not(:disabled) {
  background: #ef4444 !important;
}

.bahan-cart {
  border: 2px solid rgba(251, 146, 60, 0.3);
}

.bahan-cart h3 {
  color: #fb923c;
}

.bahan-total {
  color: #fb923c !important;
}

.bahan-total span {
  color: #fb923c;
}

.bahan-btn {
  background: #fb923c !important;
}

.bahan-btn:hover:not(:disabled) {
  background: #f97316 !important;
}

/* ============================================ */
/* INFO BOX */
/* ============================================ */

.info-box {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 35px;
  text-align: center;
}

.info-box p {
  margin: 0;
  color: #93c5fd;
  font-size: 15px;
}

/* ============================================ */
/* MANAGE BAHAN SECTION */
/* ============================================ */

.manage-bahan-section {
  background: rgba(40, 40, 40, 0.8);
  padding: 35px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin-top: 50px;
  border: 1px solid rgba(80, 80, 80, 0.6);
}

.manage-bahan-section h3 {
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 700;
}

.bahan-stock-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.stock-card {
  background: rgba(60, 60, 60, 0.6);
  border: 1px solid rgba(80, 80, 80, 0.8);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.stock-card:hover {
  transform: translateY(-5px);
  background: rgba(70, 70, 70, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stock-card-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

.stock-card-qty {
  font-size: 28px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 5px;
}

.stock-card-qty.low {
  color: #f87171;
}

.stock-card-satuan {
  font-size: 13px;
  color: #999;
}

/* ============================================ */
/* MANAJEMEN PRODUK SECTION */
/* ============================================ */

#produk {
  min-height: 100vh;
  padding: 140px 20px 80px;
}

#produk .container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

#produk .title {
  font-size: 90px;
  font-weight: 900;
  text-align: center;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 8px;
}

#produk .tagline {
  text-align: center;
  color: #ccc;
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: 70px;
}

.product-form-section {
  background: rgba(40, 40, 40, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 80, 80, 0.6);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.product-form-section h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.manage-products-section {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(80, 80, 80, 0.6);
  border-radius: 20px;
  padding: 40px;
}

.manage-products-section h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.manage-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

.manage-product-card {
  background: rgba(60, 60, 60, 0.6);
  border: 1px solid rgba(80, 80, 80, 0.8);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.manage-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(100, 100, 100, 0.9);
  background: rgba(70, 70, 70, 0.7);
}

.manage-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.manage-product-info {
  padding: 20px;
}

.manage-product-info h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.manage-product-info .category {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.manage-product-info .price {
  color: #4ade80;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.manage-product-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px 20px;
}

.btn-edit,
.btn-delete {
  flex: 1;
  padding: 12px;
  border: 2px solid;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.btn-edit {
  background: transparent;
  color: #60a5fa;
  border-color: #60a5fa;
}

.btn-edit:hover {
  background: #60a5fa;
  color: #000;
  transform: translateY(-2px);
}

.btn-delete {
  background: transparent;
  color: #f87171;
  border-color: #f87171;
}

.btn-delete:hover {
  background: #f87171;
  color: #000;
  transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .manage-products-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 60px;
  }

  .tagline {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  header {
    padding: 0 20px;
  }

  nav a {
    margin-left: 20px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .product-card,
  .bahan-card {
    padding: 0;
  }

  .product-image,
  .bahan-image {
    height: 140px;
  }

  .product-name,
  .bahan-name {
    font-size: 16px;
  }

  .product-price {
    font-size: 20px;
  }

  .cart-section {
    padding: 25px;
  }

  .cart-item {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .category-btn,
  .category-btn-expense,
  .category-btn-bahan {
    padding: 10px 25px;
    font-size: 14px;
  }

  .bahan-stock-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #produk .title {
    font-size: 60px;
  }

  #produk .tagline {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .product-form-section,
  .manage-products-section {
    padding: 25px;
  }

  .manage-products-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .manage-product-card img {
    height: 140px;
  }

  .form input[type="text"],
  .form input[type="number"],
  .form input[type="url"],
  .form select {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-image,
  .bahan-image {
    height: 120px;
  }

  .product-name,
  .bahan-name {
    font-size: 14px;
    margin-top: 10px;
  }

  .product-price {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .add-to-cart-btn,
  .add-to-expense-btn,
  .add-to-bahan-btn {
    padding: 10px;
    font-size: 14px;
    margin: 0 15px 15px 15px;
  }

  .cart-total {
    font-size: 22px;
  }

  #checkoutBtn,
  #expenseCheckoutBtn,
  #bahanCheckoutBtn {
    padding: 14px;
    font-size: 14px;
  }

  #produk {
    padding: 140px 15px 60px;
  }

  #produk .title {
    font-size: 48px;
  }

  #produk .tagline {
    font-size: 14px;
  }

  .product-form-section h3,
  .manage-products-section h3 {
    font-size: 20px;
  }

  .manage-products-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .manage-product-card img {
    height: 120px;
  }

  .manage-product-info h4 {
    font-size: 16px;
  }

  .manage-product-info .price {
    font-size: 20px;
  }

  .btn-edit,
  .btn-delete {
    padding: 10px;
    font-size: 14px;
  }
}

/* ============================================ */
/* ADDITIONAL STYLES */
/* ============================================ */

.filter-bar {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.logout-btn {
  color: #f87171 !important;
}

.logout-btn:hover {
  color: #ef4444 !important;
}