
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* Semua halaman */
body {
  background: linear-gradient(135deg, #20232a, #2e2f38);
  color: #f0f0f0;
  min-height: 100vh;
}

/* ===============================
   LOGIN PAGE
   =============================== */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

main.login {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  width: min(400px, 90%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

main.login h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #fff;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

main.login label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 4px;
}

main.login input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #2d2f35;
  color: #eee;
  transition: all 0.2s ease;
}

main.login input:focus {
  border-color: #66b3ff;
  box-shadow: 0 0 0 2px rgba(102, 179, 255, 0.3);
}

main.login button#submit_btn {
  margin-top: 10px;
  background: #66b3ff;
  color: #111;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

main.login button#submit_btn:hover {
  background: #479cf7;
  transform: scale(1.03);
}

main.login #login_feedback {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  color: #ffb347;
}

/* ===============================
   NAVBAR (RECIPES PAGE)
   =============================== */
nav.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b1b1f;
  color: #fff;
  padding: 12px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

nav.navigation h2 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

nav.navigation button#logout {
  background: #ff5757;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s;
}

nav.navigation button#logout:hover {
  background: #e64343;
}

/* ===============================
   DASHBOARD BANNER (RECIPES PAGE)
   =============================== */
.dashboard-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 3px solid #333;
}

.dashboard-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

.dashboard-banner .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}

.dashboard-banner h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.dashboard-banner p {
  font-size: 1rem;
  color: #ddd;
}

/* ===============================
   RESPONSIVE (LOGIN & BANNER)
   =============================== */
@media (max-width: 500px) {
  main.login {
    padding: 30px;
  }

  main.login h1 {
    font-size: 1.5rem;
  }

  .dashboard-banner h1 {
    font-size: 1.5rem;
  }

  .dashboard-banner p {
    font-size: 0.9rem;
  }
}


:root {
  --accent-color: #91969a;
  --accent-hover: #8c8d8f;
  --danger-color: #ff5757;
  --danger-hover: #e64343;
  --card-btn-color: #111;
}

.card-actions button,
#show_more,
#clear_filters,
#cuisine_filter {
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.card-actions button:hover,
.card-actions button:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0.98;
  outline: none;
}

#show_more {
  background: var(--accent-color);
  color: var(--card-btn-color);
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

#show_more:hover,
#show_more:focus {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

#clear_filters {
  background: transparent;
  color: #ddd;
  border: 1px solid #444;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

#clear_filters:hover,
#clear_filters:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-color);
  color: #cfc6c6;
  transform: translateY(-2px);
  outline: none;
}

#cuisine_filter:hover,
#cuisine_filter:focus {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

