@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Poppins', sans-serif;
  padding: 0;
  margin: 0;
}

/* Container for Buttons */
.button-container {
  display: flex;
  gap: 10px; /* Adjust the gap between buttons */
  justify-content: center; /* Center the buttons horizontally */
  align-items: center; /* Center the buttons vertically */
  margin-top: 20px; /* Add some top margin if needed */
}

/* Button Styling */
.btn-100, .btn-edit, .btn-delete {
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Button Styling */
/* Button Styling */
.btn-100 {
  position: relative;
  background: #4154f1; /* Background color */
  color: white; /* Text color */
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px; /* Adjust font size */
  cursor: pointer;
  text-decoration: none; /* Remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Ensure correct positioning for pseudo-elements */
}

/* Text Wrapper */
.btn-100 .text-container {
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Plus Icon Lines */
.btn-100::before,
.btn-100::after {
  content: '';
  position: absolute;
  background: #ffffff; /* Line color */
  transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Horizontal Line */
.btn-100::before {
  width: 20px; /* Adjust size */
  height: 4px; /* Line thickness */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(0); /* Initially hidden */
  transform-origin: center;
}

/* Vertical Line */
.btn-100::after {
  height: 20px; /* Adjust size */
  width: 4px; /* Line thickness */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0); /* Initially hidden */
  transform-origin: center;
}

/* Hover Effect */
.btn-100:hover {
  background: #2a3eb1; /* Darker background color on hover */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); /* Add a more pronounced shadow */
  transform: scale(1.1); /* Slightly enlarge the button */
}

/* Show and Animate Plus Icon Lines on Hover */
.btn-100:hover::before {
  transform: translate(-50%, -50%) scaleX(1); /* Expand to full width */
}

.btn-100:hover::after {
  transform: translate(-50%, -50%) scaleY(1); /* Expand to full height */
}

/* Hide Text on Hover */
.btn-100:hover .text-container {
  opacity: 0; /* Make text invisible */
}

/* Button Styling */
.btn-29 {
  position: relative;
  background: #4154f1;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none; /* Remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1; /* Ensure button text is above pseudo-elements */
}

/* Text Wrapper */
.btn-29 .text-container {
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Plus Icon Lines */
.btn-29::before,
.btn-29::after {
  content: '';
  position: absolute;
  background: #ffffff; /* Line color */
  transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Horizontal Line */
.btn-29::before {
  width: 24px; /* Size of the plus icon */
  height: 4px; /* Line thickness */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(0); /* Initially hidden */
  transform-origin: center; /* Ensures scaling from the center */
}

/* Vertical Line */
.btn-29::after {
  height: 24px; /* Size of the plus icon */
  width: 4px; /* Line thickness */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0); /* Initially hidden */
  transform-origin: center; /* Ensures scaling from the center */
}

/* Hover Effect */
.btn-29:hover {
  background: #2a3eb1; /* Darker background color on hover */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); /* Add a more pronounced shadow */
  transform: scale(1.1) rotate(-2deg); /* Slightly enlarge and rotate the button */
}

/* Show and Animate Plus Icon Lines on Hover */
.btn-29:hover .text-container {
  opacity: 0; /* Hide the text */
}

.btn-29:hover::before {
  transform: translate(-50%, -50%) scaleX(1); /* Expand to full width */
}

.btn-29:hover::after {
  transform: translate(-50%, -50%) scaleY(1); /* Expand to full height */
}

/* Additional Animation for Plus Icon */
.btn-29:hover::before {
  animation: expand-horizontal 0.6s ease forwards;
}

.btn-29:hover::after {
  animation: expand-vertical 0.6s ease forwards;
}

/* Keyframes for Horizontal Expansion */
@keyframes expand-horizontal {
  from {
    transform: translate(-50%, -50%) scaleX(0);
  }
  to {
    transform: translate(-50%, -50%) scaleX(1);
  }
}

/* Keyframes for Vertical Expansion */
@keyframes expand-vertical {
  from {
    transform: translate(-50%, -50%) scaleY(0);
  }
  to {
    transform: translate(-50%, -50%) scaleY(1);
  }
}

/* Responsive Alignment */
@media (min-width: 768px) {
  .btn-29-container {
    text-align: left; /* Align to the left on medium and larger screens */
  }
}

@media (max-width: 767px) {
  .btn-29-container {
    text-align: center; /* Center-align on small screens */
  }
}



/* Button Styling */
.btn-edit {
  position: relative;
  background: green; /* Blue background for the button */
  color: white; /* Text color */
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px; /* Adjust font size */
  cursor: pointer;
  text-decoration: none; /* Remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Ensure correct positioning for pseudo-elements */
}

/* Text Wrapper */
.btn-edit .text-container {
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Wave Icon Styling */
.wave-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.6s ease, opacity 0.3s ease;
  transform: scale(0); /* Initially hidden */
}

/* Hover Effect */
.btn-edit:hover {
  background: green; /* Darker blue background on hover */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); /* Add a more pronounced shadow */
  transform: scale(1.1); /* Slightly enlarge the button */
}

/* Show and Animate Wave Icon on Hover */
.btn-edit:hover .wave-icon {
  transform: scale(1); /* Expand to full size */
  opacity: 1; /* Show the icon */
}

/* Hide Text on Hover */
.btn-edit:hover .text-container {
  opacity: 0; /* Make text invisible */
}




.judul {
  text-align: center;
  padding: 20px;
  color: #000; /* Set text color to black */
  border-radius: 10px;
  background-color: #fff; /* Ensure the background color is different to see the shadow */
  margin-bottom: 20px;
  font-size: 1.2em; /* Adjust if needed */
  font-weight: bold;
  text-shadow: 
      1px 1px 1px rgba(0, 0, 0, 0.3), 
      2px 2px 1px rgba(0, 0, 0, 0.3), 
      3px 3px 1px rgba(0, 0, 0, 0.3),
      4px 4px 1px rgba(0, 0, 0, 0.3); /* Subtle shadow with less opacity */
}




.judul h1 {
    font-size: 2.5em;
    margin: 0;
}

.judul span {
    display: block;
    font-size: 1.2em;
    font-weight: 300;
}

.judul h1, .judul span {
    transition: transform 0.3s ease;
}

.judul h1:hover, .judul span:hover {
    transform: scale(1.05);
    color: #ffcc00;
}

    /* Header Card */
    .header-card {
      background: linear-gradient(145deg, #ffffff, #f1f1f1);
      color: #333;
      border: none;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .title {
      font-family: 'Bodoni Moda SC', serif;
      font-weight: 900;
      font-size: 36px;
      margin-bottom: 10px;
  }
  .subtitle {
      font-family: 'Bodoni Moda SC', serif;
      font-weight: 500;
      font-size: 20px;
      color: #666;
  }
  /* Product Card */
  .product-card {
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
      text-align: center;
  }
  .product-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  .product-image img {
      width: 100%;
      height: 200px; /* Fixed height */
      object-fit: cover; /* Maintain aspect ratio */
  }
  .product-info {
      padding: 20px;
  }
  .product-name {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 10px;
      color: #333;
  }
  .product-price {
      font-size: 18px;
      color: #555;
      margin-bottom: 10px;
  }
  .product-stock {
      font-size: 14px;
      color: #777;
      margin-bottom: 10px;
  }
  .product-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
  }
  .product-description {
    white-space: nowrap; /* Mencegah teks membungkus ke baris berikutnya */
    overflow: visible; /* Menyembunyikan teks yang melampaui batas elemen */
    text-overflow: ellipsis; /* Menampilkan '...' pada akhir teks yang terpotong */
    max-width: 100%; /* Menyesuaikan lebar dengan elemen kontainer */
    display: block; /* Memastikan elemen adalah block-level */
}



/* Modal Custom Styles */
.modal-content {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.modal-header {
    border-bottom: none; /* Remove bottom border */
    background: #007bff; /* Blue background for header */
    color: #fff; /* White text */
}

.modal-title {
    font-weight: bold;
}

.btn-close {
    filter: invert(1); /* Invert color for close button */
}

.modal-body {
    padding: 20px; /* Padding for the body */
}

.form-control {
    border-radius: 5px; /* Rounded corners for inputs */
    border: 1px solid #ced4da; /* Light border */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

.form-control:focus {
    border-color: #007bff; /* Highlight border on focus */
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25); /* Blue glow effect */
}

.btn-primary {
    border-radius: 5px; /* Rounded corners for buttons */
    padding: 10px 20px; /* Padding for buttons */
}

.btn-secondary {
    border-radius: 5px; /* Rounded corners for buttons */
}

/* Pagination Styles */
.pagination {
  justify-content: center;
  margin-top: 20px;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.page-link {
  padding: 0.5rem 1rem;
  margin: 0 0.1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.page-link:hover {
  background-color: #e9ecef;
  color: #007bff;
}
/* Button Styling */
.btn-delete {
  position: relative;
  background: #dc3545; /* Background color */
  color: white; /* Text color */
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px; /* Adjust font size */
  cursor: pointer;
  text-decoration: none; /* Remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Ensure correct positioning for pseudo-elements */
}

/* Text Wrapper */
.btn-delete .text-container {
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Hover Effect */
.btn-delete:hover {
  background: #b52a38; /* Darker background color on hover */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); /* Add a more pronounced shadow */
  transform: scale(1.1); /* Slightly enlarge the button */
}

/* Show Trash Icon on Hover */
.btn-delete:hover .text-container {
  opacity: 0; /* Make text invisible */
}

.btn-delete .trash-icon {
  position: absolute;
  font-size: 20px; /* Adjust icon size */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-delete:hover .trash-icon {
  opacity: 1;
}


.text-container {
  display: flex;
  align-items: center;
}
    /* Wrapper to ensure that button and search bar are in the same row */
    .row.align-items-center {
      display: flex;
      align-items: center;
  }

  /* Style for the button and search bar */
  .wrap-input-17 {
      display: flex;
      align-items: center;
      width: 100%;
  }

  .wrap-input-17 .search-box {
      display: flex;
      align-items: center;
      width: 100%;
      position: relative;
  }

  .wrap-input-17 .input-search {
      flex: 1;
      height: 50px;
      border-style: none;
      padding: 10px;
      font-size: 18px;
      letter-spacing: 2px;
      outline: none;
      border-radius: 25px;
      transition: all .5s ease-in-out;
      background-color: #4154f1;
      padding-right: 40px;
      color: #000;
  }

  .wrap-input-17 .input-search::placeholder {
      color: rgba(0, 0, 0, .5);
      font-size: 18px;
      letter-spacing: 2px;
      font-weight: 100;
  }

  .wrap-input-17 .btn-search {
      width: 50px;
      height: 50px;
      border-style: none;
      font-size: 20px;
      font-weight: bold;
      outline: none;
      cursor: pointer;
      border-radius: 50%;
      position: absolute;
      right: 0;
      color: #ffffff;
      background-color: transparent;
      pointer-events: painted;
  }

  .wrap-input-17 .btn-search:focus~.input-search,
  .wrap-input-17 .input-search:focus {
      width: 300px;
      border-radius: 0;
      background-color: transparent;
      border-bottom: 1px solid rgba(255, 255, 255, .5);
      transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
  }

  .stock-empty {
    color: red; /* Warna merah untuk stok habis */
}
