body {
  position: relative;
  margin: 0;
  height: 100vh;
  overflow: auto;
  font-family: "Poppins", sans-serif;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: url("../img/bg2.jpg") no-repeat center center; */
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
  font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.bg-dna {
  background: linear-gradient(135deg, #44413f, #e4e2da);
  transition: all 0.3s ease-in-out;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.bg-dna:hover {
  background: linear-gradient(135deg, #e4e2da, #44413f);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-body i {
  transition: transform 0.3s ease-in-out;
}

.bg-dna:hover i {
  transform: rotate(10deg);
}

h3 {
  font-weight: bold;
}

a {
  text-decoration: none; /* Menghilangkan garis bawah */
}

.navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f8f8f8;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8);
}

.navbar2 {
  top: 0;
  width: 100%;
  background: #f8f8f8;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(58, 39, 2, 0.503);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #bbb;
  font-size: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 5px;
  display: block;
}

.nav-item.active {
  color: rgba(43, 42, 40, 0.97);
}

.nav-item.active i {
  color: rgba(43, 42, 40, 0.97);
}

.nav-item:hover {
  color: #888;
}

thead {
  background-color: #007bff;
  color: white;
  text-align: center;
}

tbody tr:hover {
  background-color: #f1f1f1;
}

.table-responsive {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.table-container {
  padding: 20px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(45deg, #44413f, #e4e2da);
  padding: 10px 0;
  border-radius: 0px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Teks dengan animasi berjalan */
.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: marquee 12s linear infinite;
}

/* Animasi untuk teks berjalan dari kanan ke kiri */
@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.btn-custom {
  background: linear-gradient(45deg, #676767, #e8e8e8);
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-custom:hover {
  background: linear-gradient(45deg, #dbdbdb, #646464);
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-custom:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Burger Menu Styling */
.burger-menu-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}

.burger-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  padding: 5px;
}

.mobile-logo {
  height: 40px;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #44413f 0%, #676767 100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.side-menu.show {
  left: 0;
}

.side-menu-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-logo {
  max-width: 80%;
  margin-bottom: 15px;
}

.side-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.side-menu-items {
  padding: 20px 0;
}

.side-menu-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.side-menu-item i {
  font-size: 20px;
  width: 30px;
  margin-right: 15px;
}

.side-menu-item:hover,
.side-menu-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1005;
  display: none;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  display: block;
}

/* Make navbar responsive */
@media screen and (max-width: 768px) {
  .burger-menu-container {
    display: flex;
  }

  .burger-menu-button {
    display: block;
  }

  .navbar2 {
    display: none;
  }

  .navbar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Profitability Ratio Card Styling */
.summary-card.ratio {
  background: linear-gradient(135deg, #ff7b2d, #ff9a5a);
  border-radius: 15px;
  padding: 20px;
  color: white;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 123, 45, 0.4);
  min-height: 180px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.summary-card.ratio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 123, 45, 0.5);
}

.summary-card.ratio .icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.summary-card.ratio .title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.summary-card.ratio .value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
}

.summary-card.ratio .subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

.profit-negative {
  color: #ffebeb;
}

.status-pill {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 15px;
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  display: inline-block;
  font-weight: 500;
}
