/* =========================================
   NOTOKO BRAND THEME
   ========================================= */

:root {
  --notoko-black: #0F1220;
  --notoko-gold: #7C4102;
  --notoko-cream: #0F1220;
  --notoko-font: 'Inter', sans-serif;
}

/* GLOBAL */
body {
  margin: 0;
  padding: 0;
  background: var(--notoko-cream);
  font-family: var(--notoko-font);
  color: var(--notoko-black);
}

/* =========================================
   DASHBOARD HEADER
   ========================================= */
/* HEADER */
.header {
  width: 100%;
  background: var(--notoko-black);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-size: 22px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-logo {
  height: 40px;
}

/* =========================================
   LOGIN PAGE — Notoko Branding
   ========================================= */
     /* =========================================
     LOGIN PAGE BACKGROUND
     ========================================= */
  
     body.login-page {
       min-height: 100vh;
       padding: 0 !important;
  
       background-image: url('/images/background.jpg');
       background-size: cover;
       background-position: center;
       background-repeat: no-repeat;
  
       display: flex;
       justify-content: center;
       align-items: center;
     }
/* Remove dashboard header offset on login page */
.login-page {
  padding-top: 0 !important;
}

@media (max-width: 480px) {
  .login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .login-card {
    margin-top: 80px;
    /* keeps breathing room from top */
  }
}

/* LOGIN CARD */
.login-card {
  background: white;
  width: 400px;
  margin: 200px auto;
  /* <-- critical for centering */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
}

@media (max-width: 480px) {
  .login-card {
    width: calc(100vw - 80px);
    margin: 80px auto;
    padding: 24px;
  }
}

.login-card h1 {
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
}

.login-card input {
  width: 70%;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #0F1220;
  color: #fff;
  text-decoration: none;

  /* RESPONSIVE sizing that stays visually consistent */
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 500;
  min-height: 48px;
  /* touch target */
  border-radius: 999px;
  padding: 10px 30px;
  border: none;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  margin-top: 30px;
}

/* Desktop hover ONLY */
@media (hover: hover) and (pointer: fine) {
  .login-card button:hover {
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }
}

/* Mobile active feedback */
.login-card button:active {
  transform: scale(0.98);
}

/* DASHBOARD */
.container {
  max-width: 680px;
  margin: 40px auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 30px;
}

/* =========================================
   DASHBOARD PAGE — Notoko Branding
   ========================================= */

body {
  background: #FFF;
  margin: 0;
  padding: 24px;
  font-family: var(--notoko-font);
  color: var(--notoko-black);
}
/* =========================================
   DASHBOARD BACKGROUND
   ========================================= */

body.dashboard-page {
  min-height: 100svh;
  /* mobile-safe viewport */
  min-height: 100dvh;
  /* dynamic viewport (new browsers) */
  min-height: 100vh;
  /* fallback */

  padding: 0;
  margin: 0;

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

  background-attachment: fixed;
  /* key line */
}
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: none;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 24px;
    box-sizing: border-box;
    z-index: 1000;
  }
}

/* Center title */
.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #0f1220;
  text-align: center;
}

@media (max-width: 565px) {
  .dashboard-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    /* keeps vertical centering */
  }

  .dashboard-header h1 {
    grid-column: 1;
    align-self: center;
    /* explicit vertical centering */
    justify-self: start;
    /* left align horizontally */
    text-align: center;
    font-size: 20px;
  }
}

/* Force logout to the far right */
.dashboard-header form {
  justify-self: end;
  margin: 0;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0f1220;
  color: #ffffff;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  padding: clamp(8px, 1vw, 10px) clamp(14px, 2vw, 18px);
  min-height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .logout-btn:hover {
    background-color: #1a1d33;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
}

.logout-btn:active {
  transform: scale(0.97);
}

/* Center container */
.dashboard-wrapper {
  margin-top: -50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* full screen height */
  padding: 20px;
}

/* Dashboard card */
.dashboard-card {
  background: white;
  padding: 45px;
  width: 420px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.12);
  margin-top: 100px;
}

@media (max-width: 565px) {
.dashboard-card {
    margin-top: 450px !important;
    padding-bottom: 100px;
  }
}

/* Header text */
.dashboard-card h1 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 25px;
}

/* Button styling (same as login) */
.generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #0F1220;
  color: #fff;
  text-decoration: none;

  /* RESPONSIVE sizing that stays visually consistent */
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 500;

  padding: clamp(12px, 1.4vw, 14px) clamp(26px, 3.5vw, 34px);

  min-height: 48px;
  /* touch target */
  border-radius: 999px;

  border: none;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  margin-top: 30px;
}

/* Desktop hover ONLY */
@media (hover: hover) and (pointer: fine) {
  .generate-btn:hover {
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }
}

/* Mobile active feedback */
.generate-btn:active {
  transform: scale(0.98);
}

.dashboard-error {
  color: red;
  margin-top: 20px;
  font-size: 15px;
}

/* Palapa Dashboard Form Styling */
.palapa-form input {
  width: 100%;
  height: 48px;
  /* makes inputs taller */
  padding: 0 14px;
  /* comfortable text spacing */
  font-size: 15px;
  border-radius: 10px;
  /* curved corners */
  border: 1px solid #cfcfcf;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.palapa-form input:focus {
  border-color: #0f1220;
  box-shadow: 0 0 0 2px rgba(15, 18, 32, 0.15);
}

/* Space between fields */
.palapa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Submit button polish */
.palapa-form button {
  height: 54px;
  border-radius: 999px;
  /* pill-shaped */
  font-size: 16px;
  font-weight: 600;
}