body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: black; /* default: hitam agar cocok dengan home dan record */
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 20px;
  background: transparent;
  z-index: 10;
}

nav a, nav b {
  text-decoration: none;
  font-weight: bold;
  color: black; /* default font navbar hitam */
}

/* override khusus untuk about page */
body.about nav a, body.about nav b,
body.about {
  color: white;
}

.center-container {
  flex: 1;  
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center; /* fix tombol record biar benar-benar di tengah */
  flex-direction: column;
  transform: translateY(-15px);
}

.record-box {
  background-color: #0245da;
  border: 3px solid #0245da;
  width: 250px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 25px;
  color: white; /* font putih pada tombol */
}

/* HOME */
.home-container {
  position: absolute;
  top: 30%;
  left: 62%;
  transform: translateX(-50%);
  max-width: 40%;
  color: black;
  text-align: center;
}

.home-container h1 {
  font-size: 95px;
  margin-bottom: 10px;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* jarak antara judul dan by Azra */
}

.logo-title h1 {
  font-size: 84px;
  margin-bottom: 10px;
  margin-right: 0;
}

.by-azra {
  font-size: 17px; /* sama besar dengan <p> */
  color: black;
  margin-top: 93px; /* biar sejajar secara visual */
}

.home-container p {
  font-size: 18px;
  margin: 3px 0;
}

/* ABOUT */
.about-container {
  margin-top: -60px;
  text-align: center;
}

.about-container h2 {
  color: #0245da;
  margin-bottom: 10px;
}


/* about section */
table {
  width: 90%;
  max-width: 800px;
  margin-top: 20px;
  margin: 40px auto;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
}

th, td {
  padding: 12px;
  border: 1px solid white;
  text-align: center;
  color: white;
  font-size: 16px;
}

/* ===========================
   COMPARE PAGE
=========================== */

body.compare {
  background-image: url("/static/bg_compare.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: black;
}

.compare-container {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top:-280px;
}


.results-row {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 120px;
}

.result-box {
  background-color: #FFFFFF;
  border-radius: 20px;
  width: 350px;
  height: 300px;
  text-align: center;
  padding-top: 20px;
}

.result-box h1 {
  color: #0245da;
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: bold;
}

.result-box h3 {
  color: #0245da;
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: bold;
}

.result-box p {
  font-size: 20px;
  color: #013bb9;
  margin: 5px 0;
  font-weight: bold;
}

/* ===========================
   FINAL DECISION BOX
=========================== */

.decision-box {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 12px 30px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  width: fit-content;
  margin: 0 auto;
}

.decision-box p {
  margin: 3px 0;
  line-height: 1.2;
}
/* label teks (hitam) */
.decision-box .label {
  color: #000000;
  font-weight: 500;
}

/* nilai default */
.decision-box .value {
  font-weight: 700;
}

/* warna status */
.decision-box .value.good {
  color: #2ecc71; /* hijau */
}

.decision-box .value.fair {
  color: #f1c40f; /* kuning */
}

.decision-box .value.poor {
  color: #e74c3c; /* merah */
}

.decision-box .value.unknown {
  color: #7f8c8d; /* abu-abu */
}

/* traffic light colors */
.good {
  color: #2ecc71; /* hijau */
}

.fair {
  color: #f1c40f; /* kuning */
}

.poor {
  color: #e74c3c; /* merah */
}

/* ===========================
   UPLOAD PAGE
=========================== */

.upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.upload-button {
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #0245da;
  color: white;
  margin-top: -20px;
}

/* =========================
   ERROR PAGE
========================= */

.upload-page .center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200vh;
  text-align: center;
}

.upload-page h2 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 20px;
  background-color: #0245da;
  padding: 20px 30px;
  border-radius: 15px;
  margin-top: 90px;
}

.upload-page a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  background-color: #013bb9;
  color: white;
  transition: background-color 0.3s ease;
}

.upload-page a:hover {
  background-color: #012c8f;
}

/* =========================
   RECORD PAGE (UX FIX)
========================= */

.vinyl-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* tombol REKAM & ANALISIS (pakai style sama) */
#recordBtn,
#analyzeBtn {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#recordBtn:hover,
#analyzeBtn:hover {
  transform: scale(1.05);
  background-color: #013bb9;
}

/* teks status */
.status-text {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
  margin-top: 6px;
  transform: translateY(-10px);
}

/* upload section */
.upload-section {
  margin-top: 25px;
  display: flex;
  gap: 18px;
  z-index: 5;
  transform: translateY(-10px);
}

/* tombol upload */
.secondary-btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 15px;
  border: 2px solid #0245da;
  background-color: white;
  color: #0245da;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #0245da;
  color: white;
}
