/* =========================
   COLOR PALETTE
========================= */

:root {
  --primary-color: #2e7d32;
  --secondary-color: #4caf50;
  --accent-color: #c62828;
  --dark-color: #1b4332;
  --light-color: #f8faf8;
}

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

body {
  background-color: var(--light-color);
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

a {
  text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.nav-link {
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
  transition: 0.3s;
}

.nav-link.active::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 100%;
  height: 3px;

  border-radius: 5px;

  background: white;
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-2px);
}

/* =========================
   HERO SECTION
========================= */

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );

  color: white;

  padding: 60px 30px;

  border-radius: 20px;

  margin-bottom: 40px;

  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.25);
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.hero-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);

  font-size: 1.1rem;

  margin-bottom: 20px;
}

.hero-badge {
  display: inline-block;

  background: rgba(255, 255, 255, 0.15);

  border: 1px solid rgba(255, 255, 255, 0.2);

  padding: 10px 20px;

  border-radius: 50px;

  backdrop-filter: blur(8px);

  font-weight: 600;
}

/* =========================
   CARD EFFECT
========================= */

.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================
   IMAGE GUIDELINE
========================= */

.guideline-image-box {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;

  background: transparent;

  border: 1px solid #e9ecef;
  border-radius: 12px;
}

.guideline-image-box img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}

/* =========================
   PREVIEW IMAGE
========================= */

.preview-container {
  width: 350px;
  height: 350px;

  margin: auto;

  border: 1px solid #dee2e6;
  border-radius: 12px;

  background: #f8f9fa;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: 12px;
}

/* =========================
   RESULT IMAGE
========================= */

.result-image-box {
  width: 350px;
  height: 350px;

  margin: auto;

  border: 1px solid #dee2e6;
  border-radius: 12px;

  background: #f8f9fa;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.result-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: 12px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .preview-container,
  .result-image-box {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
}

/* =========================
   BADGES
========================= */

.badge {
  padding: 10px 15px;
  border-radius: 8px;
}

/* =========================
   PROGRESS BAR
========================= */

.progress {
  border-radius: 10px;
  overflow: hidden;
}

/* =========================
   TOP 3 CARDS
========================= */

.rank-card {
  transition: 0.3s;
}

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

.rank-card h5 {
  font-weight: 700;
}

/* =========================
   TABLE
========================= */

.table {
  vertical-align: middle;
}

.table thead th {
  text-align: center;
}

.table tbody td {
  text-align: center;
}

/* =========================
   ALERT
========================= */

.alert {
  border-radius: 12px;
}

/* =========================
   FOOTER
========================= */

footer {
  color: #6c757d;
}

footer h6 {
  color: var(--primary-color);
}

/* =========================
   LOADING MODAL
========================= */

.modal-content {
  border: none;
  border-radius: 15px;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

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

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table {
    font-size: 0.9rem;
  }

  .result-image {
    max-width: 220px;
  }

  .guideline-image-box {
    height: 220px;
  }

  .guideline-image-box img {
    max-height: 190px;
  }
}

/* PAGE TITLE */

.page-title {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* CUSTOM CARD */

.custom-card {
  border-radius: 15px;
}

/* SPECIES CARD */
.species-short-desc {
  min-height: 60px;
}

.species-card {
  border-radius: 15px;
  transition: all 0.3s ease;
  height: auto;
  transition: all 0.35s ease;
}

.species-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.species-description {
  text-align: justify;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #555;
}

/* SPECIES IMAGE */

.species-image {
  height: 180px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 15px;
}

/* =========================
   BUTTON
========================= */

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-icon {
    font-size: 3rem;
  }
}

.upload-card {
  border-left: 5px solid var(--primary-color);
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 15px;

    padding: 15px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
  }
}

/* =========================
   ABOUT PAGE
========================= */

.about-text {
  text-align: justify;
  line-height: 1.9;
  font-size: 1rem;
}

.table th {
  background-color: #f8f9fa;
  width: 30%;
}

/* ==========================
   BRAND LOGO
========================== */

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 1.9rem;
  font-weight: 700;

  text-decoration: none;
  color: #fff;
}

.brand-logo:hover {
  color: #fff;
}

.brand-text {
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* ==========================
   AI BADGE
========================== */

.ai-badge {
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--accent-color);
  color: #fff;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;

  line-height: 1;

  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);

  transition: 0.25s;
}

.ai-badge:hover {
  transform: translateY(-2px);

  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.4);
}
