
    /* Reset dan basic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Jika navbar fixed kiri lebar 250px */
.content {
  margin-left: 250px; /* geser konten ke kanan agar tidak tertutup navbar */
  padding: 2rem;      /* beri padding agar konten tidak mepet */
  transition: margin-left 0.3s ease; /* transisi smooth jika ingin animasi */
}

/* Responsive: jika layar kecil, sidebar hilang dan content jadi full lebar */
@media (max-width: 768px) {
  .content {
    margin-left: 0;
    padding: 1rem;
  }
}
/* Sidebar navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #ef0070;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 2rem;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* User info and buttons */
#userInfo, #userAccess {
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background-color: rgba(255 255 255 / 0.2);
}

#logout {
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#logout:hover {
  background-color: #b91c1c;
}

.button-daftar {
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.button-daftar:hover {
  background-color: #047857;
}

/* Content main margin */
body > .main-content {
  margin-left: 250px;
  padding: 2rem;
  transition: margin-left 0.3s ease;
}

/* Burger menu - hidden desktop */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 80px;
  margin-left: 1rem;
}

.burger div {
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  /* Sidebar disembunyikan */
  .navbar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;  /* <-- ini penting untuk jarak maksimal */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateX(0);
  }

  /* Logo tetap di kiri */
  .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    width: auto;
  }

   /* Burger muncul dan berada di kanan ujung */
  .burger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    margin: 0; /* hapus margin kiri */
  }

  /* Menu disembunyikan default */
  .menu {
    position: fixed;
    top: 60px;
    left: 0;
    background-color: #6B3F2A;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  /* Menu aktif saat burger toggle */
  .menu.active {
    max-height: 300px; /* sesuaikan sesuai konten */
  }

  /* User info dan tombol di menu */
  #userInfo, #userAccess, #logout, .button-daftar {
    width: 100%;
  }

  /* Konten utama full width */
  body > .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}

    .menu span {
      opacity: 0.9;
      display: inline-block;
    }
    .menu button {
      background: #e74c3c;
      border: none;
      padding: 8px 14px;
      border-radius: 4px;
      color: white;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.2s ease;
    }
    .menu button:hover {
      background: #ff1900;
    }
    .menu a.button-daftar {
      background: #3498db;
      padding: 8px 14px;
      border-radius: 4px;
      color: white;
      text-decoration: none;
      font-size: 1rem;
      text-align: center;
      transition: background 0.2s ease;
    }
    .menu a.button-daftar:hover {
      background: #2980b9;
    }

    /* ===== BURGER ===== */
    .burger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }
    .burger div {
      width: 26px;
      height: 3px;
      background: white;
      border-radius: 3px;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* BURGER ANIMATION */
    .burger.active .line1 {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active .line2 {
      opacity: 0;
    }
    .burger.active .line3 {
      transform: rotate(-45deg) translate(6px, -6px);
    }

    /* RESPONSIVE MENU */
    @media (max-width: 768px) {
      .burger {
        display: flex;
      }
      .menu {
        position: absolute;
        top: 65px;
        right: 0;
        background: #ef0070;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 12px;
        width: 220px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
      }
      .menu.active {
        max-height: 400px;
        opacity: 1;
      }
      .menu button,
      .menu a.button-daftar {
        width: 100%;
      }
    }
    /* pisah========= */

    /* Modal Background */
.modal {
  display: none; /* Hidden secara default */
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Transparan gelap */
  animation: fadeIn 0.3s ease;
}

/* Modal Box */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease;
}

/* Close Button */
.close {
  color: #888;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* Table Style */
.modal-content table {
  width: 100%;
  border-collapse: collapse;
}
.modal-content td {
  padding: 10px 5px;
  border-bottom: 1px solid #eee;
}
.modal-content td:first-child {
  font-weight: bold;
  color: #555;
}
.modal-content td:last-child {
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes slideIn {
  from {transform: translateY(-20px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

section {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* Input dan tombol */
input {
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 160px;
}

button {
  padding: 8px 15px;
  margin: 5px 0;
  border: none;
  border-radius: 6px;
  background-color: #ef0070;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #ef0070;
}

/* Container untuk UL agar bisa scroll */
.scrollable-list {
  max-height: 300px;       /* batas tinggi */
  overflow: auto;          /* scroll vertikal & horizontal */
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 0;
}

/* Style UL */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap; /* biar tidak pecah ke bawah */
}

ul li:nth-child(even) {
  background: #f2f2f2;
}

ul li button {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

ul li .edit-btn {
  background: #f39c12;
  color: white;
}

ul li .delete-btn {
  background: #e74c3c;
  color: white;
}

ul li .edit-btn:hover {
  background: #d68910;
}

ul li .delete-btn:hover {
  background: #c0392b;
}

/* Container agar tabel bisa scroll */
#checklistTableContainer {
  max-height: 300px; /* tinggi area scroll */
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Gaya umum tabel */
#checklistTable {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px; /* agar horizontal scroll jika kolom banyak */
  background: #fff;
}

/* Header tabel */
#checklistTable thead th {
  background: #2980b9;
  color: white;
  position: sticky;
  top: 0; /* sticky di atas */
  z-index: 2;
  padding: 10px;
  border-bottom: 2px solid #ddd;
}

/* Sel tabel */
#checklistTable td, 
#checklistTable th {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

/* Efek hover baris */
#checklistTable tbody tr:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* Tombol aksi */
#checklistTable button {
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  margin: 0 2px;
}

#checklistTable .edit-btn {
  background: #2196F3;
  color: white;
}

#checklistTable .delete-btn {
  background: #f44336;
  color: white;
}

/* Container agar tabel bisa scroll */
#userTableContainer {
  max-height: 300px; /* tinggi area scroll */
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Gaya umum tabel */
#userTable {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px; /* agar horizontal scroll jika kolom banyak */
  background: #fff;
}
/* Container agar tabel bisa scroll */
#ternakTableContainer {
  max-height: 300px; /* tinggi area scroll */
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}

section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: none; /* default: sembunyi, muncul saat tombol di klik */
}

section.active {
  display: block;
}




/* Grid container */
.grid.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* default: 4 kolom */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card style */
.card {
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border-radius: 12px;
  padding: 0.2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Icon style */
.icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #374151; /* default */
}

/* Label style */
.label {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

/* Value style */
.value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.3rem;
}

/* Responsif tablet & hp */
@media (max-width: 768px) {
  .grid.stats {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
  }
}

/* Responsif hp kecil */
@media (max-width: 480px) {
  .grid.stats {
    grid-template-columns: repeat(2, 1fr); /* 1 kolom */
  }
}

.button-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  background-color: rgba(37, 99, 235, 0.15); /* biru transparan sekitar 15% opacity */
  padding: 12px 20px;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3); /* shadow biru transparan */
}

/* Style tombol */
.button-container button {
  flex: 1;
  padding: 10px 15px;
  background-color: #3b82f6;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.button-container button:hover {
  background-color: #1e40af;
}




.breadcrumbss{
    display: flex;
    align-items: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #f5f7fa;
  border-bottom: 1px solid #ddd;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
}

.topbar .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ef0070;
}

.topbar .breadcrumbs i {
  font-size: 20px;
}

.topbar .admin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #555;
}

.topbar .admin .avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: #ef0070;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: default;

}

/* RESPONSIVE */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 15px;
    font-size: 14px;
  }

  .topbar .breadcrumbs i {
    font-size: 18px;
    height: 30px;
  }

  .topbar .admin {
    align-self: flex-end;
    gap: 6px;
    font-weight: 500;
  }

  .topbar .admin .avatar {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}


/* Responsif untuk HP */
@media (max-width: 600px) {
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-value {
    text-align: left;
    margin-left: 0;
  }
}
/* Search box */
    .search-box {
      margin-bottom: 20px;
      gap: 2px;
      text-align: left;
    }

    .search-box input {
      width: 300px;
      padding: 10px;
      border: 2px solid #ef0070;
      border-radius: 8px;
      font-size: 16px;
    }

     /* Grid Card */
    .card-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* default 4 kolom */
      gap: 20px;
    }

    /* Tablet kecil */
    @media (max-width: 900px) {
      .card-row {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* HP */
    @media (max-width: 600px) {
      .card-row {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.2s;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: inset 2px 2px 20px #c0286f;
    }

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

    .card-body {
      padding: 15px;
    }

    .card h2 {
      font-size: 18px;
      margin: 0;
    }

    .card p {
      font-size: 14px;
      color: #555;
      margin: 10px 0;
    }

    .harga {
      font-size: 18px;
      font-weight: bold;
      color: green;
      margin-top: 10px;
    }

   /* Tombol */
    .btn-row {
      display: flex;
      justify-content: space-between; /* kiri - kanan */
      margin-top: 15px;
      gap: 10px;
    }

    .btn {
      flex: 1;
      text-align: center;
      text-decoration: none;
      padding: 5px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.3s;
    }

    .btn-beli {
      background: #ef0070;
      color: #fff;
      
    }
    .btn-beli:hover {
      background: #fc3190;
    }

    .btn-barang {
  background: #ef0070;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;            /* biar isi bisa fleksibel */
  align-items: center;             /* vertikal tengah */
  justify-content: center;         /* teks di tengah */
  gap: 8px;                        /* jarak antar icon/teks kalau ada */
  transition: background 0.3s, transform 0.1s;
  text-decoration: none;           /* kalau <a> link */
}

/* Hover effect */
.btn-barang:hover {
  background: #fc3190;
}

/* Klik (active) effect */
.btn-barang:active {
  transform: scale(0.97);
}

/* Fokus outline */
.btn-barang:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.4);
}


    .btn-view {
      background: #c0286f;
      color: #ffffff;
    }
    .btn-view:hover {
      background: rgb(121, 0, 61);
    }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background: rgba(0, 0, 0, 0.6);
    }

    .modal-content {
      background: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 12px;
      width: 80%;
      max-width: 500px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(-20px);}
      to {opacity: 1; transform: translateY(0);}
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h2 {
      margin: 0;
    }

    .close {
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      color: #333;
    }

    .close:hover {
      color: red;
    }

    .modal-body img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    .modal-body p {
      font-size: 14px;
      color: #444;
    }
/* Modal kecil di pojok kanan bawah */
    .modal1 {
      display: none;
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1000;
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      width: 300px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      animation: slideIn 0.3s ease-out;
    }

    /* Tombol close */
    .close-btn {
      background: #007bff;
      color: #fff;
      border: none;
      padding: 8px 16px;
      margin-top: 15px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
    }

    .close-btn:hover {
      background: #0056b3;
    }

    /* Tombol buka modal */
    .open-btn {
      background: #28a745;
      color: #fff;
      border: none;
      padding: 10px 18px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
    }

    .open-btn:hover {
      background: #1c7c31;
    }

    /* Animasi muncul dari kanan */
    @keyframes slideIn {
      from { opacity: 0; transform: translateX(100%); }
      to { opacity: 1; transform: translateX(0); }
    }


/* ==== Modal Wrapper ==== */
/* ==== Modal Wrapper ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  padding-top: 50px;
}

/* ==== Modal Box ==== */
.modal-content {
  background: #fff;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease-in-out;
}

/* ==== Close Button ==== */
.modal .close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #777;
}
.modal .close:hover { color: #e74c3c; }

/* ==== Form Horizontal ==== */
#orderForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Baris form */
.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Label rata kanan, biar sejajar */
.form-group label {
  width: 130px;
  font-weight: 600;
  color: #333;
  text-align: right;
}

/* Input / textarea sejajar setelah label */
.form-group input,
.form-group textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4caf50;
  outline: none;
}

/* Textarea lebih tinggi */
.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Tombol aksi */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.form-actions button {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.form-actions .btn-cancel {
  background: #ccc;
  color: #333;
}
.form-actions .btn-cancel:hover {
  background: #b3b3b3;
}

.form-actions .btn-submit {
  background: #4caf50;
  color: #fff;
}
.form-actions .btn-submit:hover {
  background: #43a047;
}

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==== Modal Overlay ==== */
#barangModal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* shorthand untuk top, right, bottom, left */
  background: rgba(0,0,0,0.6);
  padding: 30px 10px;
  overflow-y: auto;
}

/* ==== Modal Box ==== */
#barangModal .modal-content {
  background: #fff;
  margin: auto;
  padding: 25px 30px;
  border-radius: 12px;
  width: 95%;
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease-in-out;
}

/* ==== Judul ==== */
#barangModal h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: left;
}

/* ==== Tombol Close ==== */
#barangModal .close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}
#barangModal .close:hover {
  color: #e74c3c;
}

/* ==== Form ==== */
#barangForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Satu baris form */
#barangForm .form-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

/* Label di kiri */
#barangForm label {
  min-width: 120px;
  font-weight: 600;
  color: #333;
  text-align: left;
  padding-top: 8px;
}

/* Input dan textarea rata kiri dan lebar */
#barangForm input,
#barangForm textarea {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.2s;
}

#barangForm input:focus,
#barangForm textarea:focus {
  border-color: #4caf50;
  outline: none;
}

#barangForm textarea {
  resize: vertical;
  min-height: 70px;
}

/* ==== Tombol Aksi ==== */
#barangForm .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

#barangForm .form-actions button {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

#barangForm .btn-cancel {
  background: #ff0000;
  color: #ffffff;
}
#barangForm .btn-cancel:hover {
  background: #ec3232;
}

#barangForm .btn-submit {
  background:#0056b3;
  color: #fff;
}
#barangForm .btn-submit:hover {
  background: #2464a9;
}

/* ==== Responsiveness ==== */
@media (max-width: 300px) {
  #barangForm .form-group {
    flex-direction: column; /* label di atas input */
    align-items: stretch;
  }

  #barangForm label {
    min-width: unset;
    padding-top: 0;
  }
}
/* Modal kecil di pojok kanan bawah */
.modal1 {
  display: none; /* default tidak tampil */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease-out;
  text-align: center;
}

/* Animasi muncul dari kanan */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Tombol tutup modal */
.close-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin-top: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.close-btn:hover {
  background: #0056b3;
}

/* Tombol buka modal */
.open-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.open-btn:hover {
  background: #1c7c31;
}


/* bukket */
.btn-view-bukket {
  background-color:  #c0286f;   /* biru elegan */
  color: white;
}

.btn-view-bukket:hover {
  background-color: #ef0070;   /* biru lebih gelap saat hover */
  transform: translateY(-2px); /* sedikit naik saat hover */
}

.btn-view-bukket:active {
  background-color: #1f618d;   /* biru lebih pekat saat ditekan */
  transform: translateY(0);    /* balik normal */
}

/* Atur kontainer detail agar gambar tidak keluar */

/* Gambar produk agar responsif */
#detailGambar {
  width: 100%;            /* selalu mengikuti lebar kontainer */
  max-width: 400px;       /* batas maksimal di layar besar */
  height: auto;           /* biar proporsi gambar terjaga */
  border-radius: 8px;
  margin: 10px 0;
  object-fit: contain;    /* contain → gambar tidak terpotong */
}

/* 📱 Responsive untuk layar kecil */
@media (max-width: 600px) {
  #detailGambar {
    max-width: 100%;      /* full width di hp */
  }
}

/* Gambar produk agar responsif */
#detailGambarBukket {
  width: 100%;            /* selalu mengikuti lebar kontainer */
  max-width: 400px;       /* batas maksimal di layar besar */
  height: auto;           /* biar proporsi gambar terjaga */
  border-radius: 8px;
  margin: 10px 0;
  object-fit: contain;    /* contain → gambar tidak terpotong */
}

/* 📱 Responsive untuk layar kecil */
@media (max-width: 600px) {
  #detailGambarBukket {
    max-width: 100%;      /* full width di hp */
  }
}

.card p {
  display: none;
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

#sectionDetailTernak h4
{
  display: none;
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

#sectionDetailBukket h4 {
    display: none;
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}
/* slide foto */
/* SLIDE FOTO */
.banner-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 20px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  bottom: 15%;
  left: 10%;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 80%;
  color: #fff;
}

.overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.overlay p {
  font-size: 1.1rem;
  color: #eee;
  line-height: 1.5;
}

/* Navigasi dots */
.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

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

/* Laptop & Tablet Landscape */
@media (max-width: 1200px) {
  .overlay {
    bottom: 12%;
    left: 8%;
    padding: 18px 25px;
  }

  .overlay h2 {
    font-size: 1.8rem;
  }

  .overlay p {
    font-size: 1rem;
  }
}

/* Tablet & HP besar */
@media (max-width: 992px) {
  .banner-slider {
    height: 55vh;
    border-radius: 20px;
  }

  .overlay {
    bottom: 10%;
    left: 8%;
    padding: 15px 20px;
  }

  .overlay h2 {
    font-size: 1.6rem;
  }

  .overlay p {
    font-size: 1rem;
  }
}

/* HP Potrait */
@media (max-width: 600px) {
  .banner-slider {
    height: 50vh;
    min-height: 250px;
    border-radius: 20px;
  }

  .overlay {
    bottom: 8%;
    left: 5%;
    padding: 12px 18px;
    max-width: 90%;
  }

  .overlay h2 {
    font-size: 1.3rem;
  }

  .overlay p {
    font-size: 0.9rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* HP kecil (≤400px) */
@media (max-width: 400px) {
  .banner-slider {
    height: 45vh;
    min-height: 220px;
    border-radius: 20px;
  }

  .overlay {
    padding: 10px 15px;
    left: 4%;
  }

  .overlay h2 {
    font-size: 1.1rem;
  }

  .overlay p {
    font-size: 0.8rem;
  }
}

/* Layar besar (≥1600px) */
@media (min-width: 1600px) {
  .banner-slider {
    height: 70vh;
    max-height: 800px;
    border-radius: 20px;
  }

  .overlay h2 {
    font-size: 2.5rem;
  }

  .overlay p {
    font-size: 1.3rem;
  }
}
