*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #5f3e33;
  --secondary-color: #e4d4b1;

  --button-active-color: #d8905e;

  --progress-value-color: #5f3e33;

  --primary-text-color: #333333;
  --secondary-text-color: #444444;
}

body {
  font-family: Arial, Helvetica, sans-serif;

  min-height: 100vh;
}

.loading {
  width: 50px;
  height: 50px;

  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #3498db; /* Blue */
  border-radius: 50%;

  animation: spinner 1000ms linear infinite;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.brand-name {
  font-size: 1.5em;

  text-align: center;
}

.brand-name a {
  text-decoration: none;

  font-weight: 700;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 25px;
}

.brand-logo {
  height: 50px; /* bisa sesuaikan */
  width: auto;
  margin-right: 10px;
}

.container {
  margin-inline: auto;

  padding: 0 16px;
}

.section-title {
  padding: 20px 0;
  font-size: 1.2em;
}

.btn {
  padding: 8px 24px;
  border: 2px solid #00000022;
  border-radius: 6px;

  display: block;
  background-color: var(--primary-color);

  font-size: 16px;
  font-weight: 500;
  color: #fff;

  transition: 150ms ease-in-out;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.btn:active {
  background-color: var(--button-active-color);

  outline: 2px solid #00000077;
}

.remove-style-link {
  text-decoration: none;
  color: #3d3d3d !important;
}

/* Navigation */
nav {
  display: inline;
}

nav .nav-container {
  background-color: var(--primary-color);
  position: sticky;
  inset-block-start: 0;
  box-shadow: 0 2px 2px 0 #333333aa;
}

nav .nav-content {
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 8px;
}

nav a {
  text-decoration: none;
  color: #eeeeee;
}

nav .nav-list a {
  padding: 4px 8px;
}

nav .nav-list a:hover,
nav .auth-btn-container a:hover {
  text-decoration: underline;
}

/* Default nav-list (mobile first: hidden) */
.nav-list {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 16px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  nav .nav-content {
    flex-direction: row;
    align-items: center;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .nav-list.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* Desktop (≥769px) */
@media (min-width: 769px) {
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    position: static;
    background: none;
    box-shadow: none;
  }

  .hamburger {
    display: none;
  }

  nav .nav-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* End of Navigation */

/* Header */
header {
  background-color: #33333355;
  height: 650px;

  background-image: url('../images/bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

header .jumbotron {
  padding: 30px 20px;

  height: 600px;
  display: flex;
}

header .inner-jumbotron {
  margin: auto;

  text-align: center;
  color: #303030;
}

header .inner-jumbotron h2 {
  font-size: 3em;
  margin-block-end: 8px;
}

header .inner-jumbotron p {
  font-size: 1em;
}
/* End of Header */

/* Main */
main {
  padding-block: 32px;
}

.predict-container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(50px, auto));

  gap: 24px;
}

#dropArea {
  margin-block-end: 16px;
  padding: 20px;

  border: 2px dashed #cccccc;
  border-radius: 12px;
}

#dropArea.highlight {
  border-color: purple;
}

#batikFile {
  display: none;
}

#batikFileLabel {
  margin-block: 8px;
  padding-inline: 16px;

  display: inline-block;

  font-size: smaller;
}

#previewImg {
  margin-block-start: 8px;
}

#previewImg img {
  width: 100%;
}

.submit-form {
  display: flex;

  justify-content: end;
}

.result-container .loading,
.result-container #predictionError,
.result-container #result {
  display: none;
}

.result-container #waitingToPredicting {
  text-align: center;
}

.result-container #waitingToPredicting img {
  width: 60%;
  text-align: center;
}

.result-container #waitingToPredicting p {
  margin-block: 16px;

  color: var(--secondary-text-color);

  user-select: none;
}

#result .response-message {
  margin-block-end: 16px;

  text-align: center;
  font-size: 1.3rem;
}

#result .response-message .message {
  margin-inline-start: 8px;
}

#result .prediction-result > * {
  margin-block-end: 8px;
}

#result .result-title {
  font-weight: 700;
}

#result .confidence-score {
  width: 100%;

  -webkit-appearance: none;
  appearance: none;
}

#result .confidence-score::-moz-progress-bar,
#result .confidence-score::-webkit-progress-bar {
  /* background-color: #33333355; */

  background-color: #eee;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

#result .confidence-score::-webkit-progress-value {
  background-color: var(--progress-value-color);
}
/* End of Main */

/* Start of Footer */
.main-footer {
  padding-block: 16px;

  display: flex;
  justify-content: space-between;

  color: #6c757d;
  font-size: small;
}

.footer-divider {
  border-block-width: 0.5px;
  border-block-color: rgb(238, 238, 238);
}

.main-footer .policies {
  display: flex;

  justify-content: space-between;
  gap: 8px;
}
/* End of Main */

/* Hero umum */
.hero {
  padding: 10px;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 30px 30px;
}

/* Hero untuk halaman utama */
.hero-home {
  background-image: url('../images/beranda.png');
}

/* Hero untuk halaman Batik Madura */
.hero-madura {
  background-image: url('../images/BatikMaduraKu.png');
}

/* Hero untuk halaman Batik Nusantara */
.hero-nusantara {
  background-image: url('../images/BatikNusantara.png');
}

/* Statistik Section */
.stats-section {
  padding: 100px 20px;
  background-color: #f9f5ef;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1 1 200px;
  padding: 20px;
}

.stat-item h2 {
  font-size: 2.5em;
  color: var(--primary-color);
}

.stat-item p {
  margin-top: 8px;
  font-size: 1em;
  color: var(--secondary-text-color);
}

/* Testimoni Section */
.testimoni-section {
  padding: 105px 10px;
  background-color: #fff;
  text-align: center;
}

.testimoni-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.testimoni-card {
  background: #f9f5ef;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 300px;
}

.testimoni-card p {
  font-style: italic;
  margin-bottom: 10px;
}

.testimoni-card h4 {
  font-weight: bold;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--primary-color);
  color: white;
}

.cta-section h2 {
  font-size: 2em;
  margin-bottom: 16px;
}

/* Tombol CTA */
.cta-buttons {
  display: flex;
  justify-content: center;   
  align-items: center;
  gap: 20px;                 
  margin-top: 20px;
  flex-wrap: wrap;           
}

.cta-buttons .btn {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
  background-color: var(--primary-color);
  color: #fff; 
}

.cta-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: white; 
}

/* About Page */
.about-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f5ef; 
}

.about-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-section p, 
.about-section ul {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.6;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section ul li {
  margin: 8px 0;
}

/* Team Grid */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Kontak Section */
.kontak-section {
  padding: 50px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.kontak-section h2 {
  color: #fff;
  margin-bottom: 20px;
}

.kontak-section p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.kontak-section ul {
  list-style: none;      
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

.kontak-section ul li {
  margin: 8px 0;
  font-size: 1.05em;
}

.kontak-section ul li {
  margin: 10px 0;
  font-size: 1.05em;
}

.kontak-section ul li i {
  margin-right: 8px;
  color: #fff; /* warna ikon */
}
.kontak-section ul li a {
  color: #fff; 
  text-decoration: none;
  transition: color 0.3s ease;
}
.kontak-section ul li a:hover {
  color: var(--primary-color);
}

.kontak-links {
  display: flex;
  justify-content: center;
  gap: 30px; /* jarak antar ikon */
  margin-top: 20px;
}

.kontak-links a {
  color: #fff;
  font-size: 1.1em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px; /* jarak ikon ke teks */
  transition: color 0.3s ease;
}

.kontak-links a:hover {
  color: var(--secondary-color);
}

.kontak-links i {
  font-size: 1.3em;
}