/* Variabel warna */
:root {
  --primary-color: #2e7d32;
  --secondary-color: #4caf50;
  --success-soft: #e8f5e9;
  --danger-soft: #ffebee;
  --primary-soft: #e3f2fd;
  --text-color: #2c3e50;
}

/* Reset dan style dasar */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
  color: var(--text-color);
}

/* Navbar */
.navbar {
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
  background-color: var(--primary-color);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-link {
  padding: 0.75rem 1rem !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link i {
  width: 20px;
  text-align: center;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.dropdown-menu {
  padding: 0.5rem;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-menu-animated {
  animation: dropdownAnimation 0.2s ease-out;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.5rem 1rem !important;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 100px 0 150px;
  margin-bottom: 50px;
}

/* Cards */
.menu-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.bg-success-soft {
  background-color: var(--success-soft);
}

.bg-danger-soft {
  background-color: var(--danger-soft);
}

.bg-primary-soft {
  background-color: var(--primary-soft);
}

.icon-circle i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Stats Cards */
.stats-card {
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-card h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-card p {
  color: #6c757d;
  margin: 0;
}

/* Footer */
.footer {
  background-color: white;
  border-top: 1px solid #eee;
}

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

.menu-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Laporan Page Styles */
.stats-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stats-card p {
  margin: 0;
  opacity: 0.9;
}

.table {
  font-size: 0.9rem;
}

.table thead th {
  background-color: var(--light-color);
  border-bottom: none;
  font-weight: 600;
}

.badge {
  padding: 0.5em 1em;
  font-weight: 500;
}

.chart-container {
  position: relative;
  margin: auto;
  height: 300px;
}

@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1rem;
  }

  .chart-container {
    height: 250px;
  }
}

/* Login Page Styles */
.login-card {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.login-card .card-body {
  padding: 2.5rem !important;
}

.login-card .form-control {
  border-radius: 0 8px 8px 0;
  height: 45px;
}

.login-card .input-group-text {
  border-radius: 8px 0 0 8px;
  width: 45px;
  justify-content: center;
}

.login-card .btn {
  height: 45px;
  font-weight: 500;
}

.login-card .form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Custom background pattern */
.bg-light {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.png");
  opacity: 0.1;
  pointer-events: none;
}

/* Password field styling */
.password-field {
  font-family: monospace;
  letter-spacing: 1px;
}

.input-group-sm .form-control {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.input-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Breadcrumb Styles */
.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  font-size: 0.7rem;
  color: #6c757d;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: #6c757d;
}

.breadcrumb-item:first-child a {
  font-size: 1rem;
}
