/* assets/style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to bottom right, #f8f9fa, #e2e6ea);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: right;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-btn,
.logout-btn {
  background: #ffffff10;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover,
.logout-btn:hover {
  background: #ffffff30;
}

/* Container */
.container {
  max-width: 700px;
  margin: 3rem auto;
  background: #ffffffcc;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.judul {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.form-col {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #444;
}

input[type="text"] {
  padding: 0.6rem 0.8rem;
  border: 2px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  border-color: #4dabf7;
}

.swap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.swap-btn {
  font-size: 1.5rem;
  background: #4dabf7;
  border: none;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.swap-btn:hover {
  transform: rotate(180deg);
  background: #339af0;
}

.swap-label {
  font-size: 0.8rem;
  color: #555;
}

/* Saran Kata */
.saran-kata {
  margin-top: 1.5rem;
  color: #333;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-col {
    width: 100%;
  }

  .swap-col {
    flex-direction: row;
    justify-content: center;
  }
}
  .rekomendasi-box {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  border: 1px dashed #bbb;
  text-align: left;
}
  .rekomendasi-kata {
  display: inline-block;
  background-color: #f3f4f6;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 5px 8px 5px 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease-in-out, background-color 0.2s ease;
  border: 1px solid #ccc;
}

.rekomendasi-kata:hover {
  background-color: #dbeafe;
  color: #1d4ed8;
  transform: scale(1.05);
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #4dabf7;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #339af0;
  text-decoration: underline;
}

.btn-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: rgba(77, 171, 247, 0.15);
  color: #1d4ed8;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #4dabf7;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background-color: rgba(77, 171, 247, 0.3);
  color: #0c4a6e;
}

.floating-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.5);
  color: #1d4ed8;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #4dabf7;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.floating-back:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #0c4a6e;
}
.nav-btn {
  position: relative;
  overflow: hidden;
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #1c1c1c;
  padding: 16px 32px;
  gap: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 1000;
}

.navbar .nav-btn {
  background-color: transparent;
  border: 2px solid #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.navbar .nav-btn:hover {
  background-color: #333;
  transform: scale(1.05);
}

.navbar .nav-btn.active {
  background-color: #00aaff;
  border-color: #00aaff;
  color: white;
}

