/* === GLOBAL STYLE === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === LOGIN PAGE === */
body.login-page {
  background: linear-gradient(135deg, #6e39f2, #f063b8);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* === LOGIN WRAPPER === */
.login-wrapper {
  display: flex;
  width: 900px;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* === BAGIAN KIRI === */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: white;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-left img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.login-left h1 {
  margin: 10px 0;
  font-size: 24px;
}

.login-left p {
  font-size: 14px;
  max-width: 80%;
}

/* === BAGIAN KANAN === */
.login-right {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h2 {
  text-align: center;
  color: #6e39f2;
  margin-bottom: 30px;
}

.login-right form {
  display: flex;
  flex-direction: column;
}

.login-right input[type="text"],
.login-right input[type="password"] {
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.login-options a {
  text-decoration: none;
  color: #6e39f2;
}

.login-right button {
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #6e39f2, #f063b8);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-right button:hover {
  opacity: 0.9;
}

.register-link {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
}

.register-link a {
  color: #f063b8;
  text-decoration: none;
  font-weight: bold;
}

/* === NAVBAR === */
.navbar {
  background-color: #89CFF0;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO TULISAN */
.navbar-logo-text a {
  font-size: 26px;
  font-weight: bold;
  color: #6e39f2;
  text-decoration: none;
  letter-spacing: 1px;
}

/* MENU UTAMA */
.navbar-menu {
  margin-left: auto;
}

.navbar-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar-menu ul li {
  position: relative;
}

.navbar-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
  padding: 8px 12px;
}

.navbar-menu a:hover {
  color: #6e39f2;
}

/* === LOGOUT BUTTON STYLE === */
.navbar-menu ul li a.logout {
  color: #fff;
  background-color: #f44336;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.navbar-menu ul li a.logout:hover {
  background-color: #d32f2f;
}

/* === USER INISIAL === */
.navbar-user {
  background-color: #6e39f2;
  color: white;
  padding: 8px 14px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
}

/* === FOOTER === */
.footer-full {
  background-color: #89CFF0;
  text-align: center;
  padding: 30px 20px;
  color: #333;
  margin-top: 40px;
}

.footer-full h2 {
  color: #6e39f2;
  margin-bottom: 10px;
}

.footer-full p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 14px;
  color: #333;
}

.footer-icons {
  margin-bottom: 15px;
}

.footer-icons a {
  font-size: 20px;
  margin: 0 10px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #6e39f2;
}

.footer-copy {
  font-size: 13px;
  color: #222;
}

/* === DASHBOARD PAGE === */
.dashboard-container {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background-color: #fff;
}

.dashboard-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  gap: 50px;
}

.dashboard-left {
  flex: 1;
}

.dashboard-title {
  font-size: 48px;
  font-weight: bold;
  color: #6e39f2;
  margin-bottom: 20px;
}

.dashboard-description {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  max-width: 90%;
}

.dashboard-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === CEK PAGE === */
.cek-container {
  padding: 60px 40px;
  text-align: center;
  background-color: #fff;
  min-height: 70vh;
}

.cek-title {
  font-size: 40px;
  font-weight: bold;
  color: #6e39f2;
  margin-bottom: 15px;
}

.cek-description {
  font-size: 18px;
  color: #444;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.cek-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cek-box {
  background-color: #89CFF0;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cek-heading {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cek-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cek-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6e39f2, #f063b8);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.cek-button:hover {
  opacity: 0.9;
}

/* === FORM BMI === */
.bmi-form {
  max-width: 400px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

.bmi-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.bmi-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.bmi-result {
  margin-top: 30px;
  text-align: center;
  background-color: #e0f7fa;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bmi-result h3 {
  margin-bottom: 10px;
  color: #6e39f2;
}

/* === FORM CEK STRES === */
.stres-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fdfdfd;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stres-question {
  margin-bottom: 25px;
  background-color: #f8f8ff;
  padding: 20px;
  border-radius: 12px;
}

.stres-question label {
  font-weight: bold;
  display: block;
  margin-bottom: 12px;
  color: #333;
  font-size: 16px;
}

/* Container pilihan */
.scale-options {
  display: flex;
  flex-wrap: wrap; /* responsif, tetap wrap di layar kecil */
  gap: 20px;
  justify-content: flex-start;
}

/* Pilihan radio per opsi */
.scale-options label {
  background-color: #f0f0f0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 130px;
  max-width: 200px;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  flex: 1 1 22%;
}

.scale-options label:hover {
  background-color: #e0e0ff;
}

.scale-options input[type="radio"] {
  margin-right: 6px;
}

/* Tombol kirim di tengah */
.center-btn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 30px;
}

/* === FORM CEK KECEMASAN === */
.kecemasan-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f6fcff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kecemasan-question {
  margin-bottom: 25px;
  background-color: #e8f7ff;
  padding: 20px;
  border-radius: 12px;
}

.kecemasan-question label {
  font-weight: bold;
  display: block;
  margin-bottom: 12px;
  color: #222;
  font-size: 16px;
}

.kecemasan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.kecemasan-options label {
  background-color: #d4efff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 130px;
  max-width: 200px;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  flex: 1 1 22%;
}

.kecemasan-options label:hover {
  background-color: #bce7ff;
}

.kecemasan-options input[type="radio"] {
  margin-right: 6px;
}

/* Tombol submit tengah */
.center-btn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 30px;
}

/* === HASIL GRID === */
.hasil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.hasil-card {
  background-color: #f9f9f9;
  padding: 20px 25px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  position: relative;
}

.hasil-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hasil-ikon {
  font-size: 24px;
}

.hasil-card h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.hasil-card p {
  margin: 10px 0;
  color: #444;
  font-weight: 500;
}

.hasil-tanggal {
  font-size: 13px;
  color: #777;
  display: block;
  margin-top: 12px;
}

/* Badge kategori */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: bold;
  margin-top: 5px;
}

.badge.Ringan {
  background-color: #b3f0c1;
  color: #05650f;
}

.badge.Sedang {
  background-color: #fff3cd;
  color: #856404;
}

.badge.Berat, .badge.Obesitas {
  background-color: #f8d7da;
  color: #842029;
}

.badge.Normal {
  background-color: #d4edda;
  color: #155724;
}

.badge.Kurus, .badge.Gemuk {
  background-color: #e0e0e0;
  color: #333;
}

/* Warna kartu per jenis */
.hasil-card.bmi {
  background-color: #e6f2ff;
}

.hasil-card.stres {
  background-color: #fff0e6;
}

.hasil-card.cemas {
  background-color: #f3e6ff;
}

/* LOGOUT */

.logout {
  background-color: #f06262;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
.logout:hover {
  background-color: #d84343;
}

/* Untuk halaman daftar */
body.daftar-page {
  background: linear-gradient(135deg, #6e39f2, #f063b8);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.form-wrapper {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 350px;
}

.form-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #6e39f2;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.form-wrapper button {
  width: 100%;
  padding: 10px;
  background: #6e39f2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.form-wrapper button:hover {
  background: #5a2ed0;
}

.pesan {
  margin-top: 15px;
  color: red;
  text-align: center;
}

.pesan a {
  color: #6e39f2;
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-link a {
  color: #6e39f2;
  text-decoration: underline;
  font-weight: bold;
}
