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

:root {
  --notoko-black: #0F1220;
  --notoko-gold: #7C4102;
  --notoko-cream: #EAE5D2;
  --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
   ========================================= */
     /* 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: #D12026;
    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 {
    background-color: black;
    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: var(--notoko-cream);
  margin: 0;
  padding: 24px;
  font-family: var(--notoko-font);
  color: var(--notoko-black);
}

.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;

  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  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);
}

/* 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: #D12026;
  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 {
    background-color: black;
      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;
}