:root {
  /* Backgrounds */
  --color-bg-primary:    #ffffff;
  --color-bg-secondary:  #f5f5f4;
  --color-bg-tertiary:   #eeece9;

  /* Text */
  --color-text-primary:   #1a1a18;
  --color-text-secondary: #5c5b57;
  --color-text-tertiary:  #9c9b96;

  /* Borders */
  --color-border-light:   #e2e0db;   /* dividers, subtle separators */
  --color-border-mid:     #c8c6c0;   /* input borders, cards */
  --color-border-strong:  #a09e98;   /* hover states, emphasis */

  /* Accent (your teal) */
  --color-accent:         #1D9E75;
  --color-accent-hover:   #0F6E56;
  --color-accent-subtle:  #e1f5ee;

  /* Radius */
  --border-radius-sm:  4px;
  --border-radius-md:  8px;
  --border-radius-lg:  12px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, "Courier New", monospace;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
}

.container {
    padding:25px;
    margin: 0 auto;
    
}

  * { box-sizing: border-box; }
.site-header          { border-bottom: 1px solid var(--color-border-light); padding-bottom:2px; }
.site-header input    { border: 1px solid var(--color-border-mid); background: var(--color-bg-secondary); color: var(--color-text-primary); }
.site-header input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
.btn-login            { border: 1px solid var(--color-border-mid); color: var(--color-text-primary); }
.btn-login:hover      { background: var(--color-bg-secondary); border-color: var(--color-border-strong); }
.btn-signup           { background: var(--color-accent); }
.btn-signup:hover     { background: var(--color-accent-hover); }

  .site-header {
    
    padding: 2 1.5rem;
    width: 100%;
  }


  /* Desktop row */
  .header-desktop {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 10px;
  }

  .logo {
  font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
  }
  .logo span { color: #1D9E75; }

  .header-spacer { flex: 1; min-width: 12px; }
/* Prevent form from breaking layout */
.login-form {
  display: contents;
}
  .login-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .login-fields input {
    height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
    outline: none;
   font-family: var(--font-sans);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 150px;
    min-width: 80px;
    flex-shrink: 1;
    border-radius: var(--border-radius-md);
  }
  .login-fields input:focus {
    border-color: var(--color-border-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.10);
  }

  .btn {
    height: 36px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.13s, color 0.13s, border-color 0.13s, transform 0.08s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /*width: 80px;*/
    text-decoration:none;
  }
  .btn:active { transform: scale(0.97); }

  .btn-login {
    background: transparent;
    border-radius: var(--border-radius-md);
  }
  .btn-login:hover {
  }

  .btn-signup {
    background: #1D9E75;
    border: 1px solid transparent;
    color: #fff;
    border-radius: var(--border-radius-md);
  }
  .btn-signup:hover { background: #0F6E56; }

  
  
  
.header-form {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.header-spacer {
  flex: 1;
}

.login-fields {
  display: flex;
  gap: 8px;
}

.login-fields input {
  width: 140px;
}
.btn-login {
  width: 100%;
  max-width: 200px;
}
.btn-login {
  margin: 0 auto;
}
@media (max-width: 768px) {
  .header-form {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo signup"
      "fields login";
    row-gap: 10px;
    column-gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .btn-signup {
    grid-area: signup;
  }

  .login-fields {
    grid-area: fields;
    display: flex;
    width: 100%;
  }

  .login-fields input {
    flex: 1;
    min-width: 0;
  }

  .btn-login {
    grid-area: login;
    width: auto;
  }
}
@media (min-width: 769px) {
  .login-fields {
    justify-self: end;
  }

  .btn-login {
    justify-self: end;
  }

  .btn-signup {
    justify-self: end;
  }
}









body {

  font-family: system-ui, -apple-system, sans-serif;
  background: #f7f8fb;
  color: #1f2937;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 70px;
}

.hero h1 {
  font-size: 44px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: #111827;
}

.hero p {
  font-size: 18px;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.primary,
.secondary {
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.primary {
  background: #2563eb;
  color: white;
  border: 1px solid transparent;
}

.primary:hover {
  background: #1d4ed8;
}

.secondary {
  border: 1px solid #e5e7eb;
  color: #374151;
  background: white;
}

/* Products */
.products {
  display: grid;
  gap: 28px;
}

/* Cards */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.product-card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Featured = subtle highlight, not dark */
.product-card.featured {
  border: 1px solid #dbeafe;
  background: #f0f7ff;
}

.product-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #111827;
}

.product-content p {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.primary,
.secondary {
  white-space: nowrap;
  flex-shrink: 0;
}





/* =========================
   AUTH PAGE LAYOUT
========================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;

  /* key fix */
  align-items: flex-start;

  padding-top: 8vh;
  padding-bottom: 8vh;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Left side */
.auth-side {
  padding: 50px;
  background: #f0f7ff;
}

.auth-side h1 {
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.auth-side p {
  color: #6b7280;
  line-height: 1.6;
}

/* Right side */
.auth-form {
  padding: 50px;
}

.auth-form h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.muted {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Inputs */
.auth-form input {
  width: 100%;
  height: 40px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
}

.auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Button full width */
.full {
  width: 100%;
  margin-top: 8px;
}

/* Switch text */
.switch {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

.switch a {
  color: #2563eb;
  text-decoration: none;
}

/* Error */
.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-form {
    padding: 30px;
  }
}




/* ==LOGIN ERROR MSG== */
.flash-error {
  position: relative;
  max-width: 1100px;
  margin: 12px auto;
  padding: 10px 14px;
  border-radius: 10px;

  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;

  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flash-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #991b1b;
  line-height: 1;
}








/* =========================
   DASHBOARD LAYOUT
========================= */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.dash-brand {
  font-weight: 700;
  font-size: 18px;
}

.dash-user {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 12px;
  align-items: center;
}

.dash-user a {
  color: #2563eb;
  text-decoration: none;
}

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 60px);
}

/* NAV */
.dash-nav {
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.tab:hover {
  background: #f3f4f6;
}

.tab.active {
  background: #e0ecff;
  border-color: #c7ddff;
}

/* CONTENT */
.dash-content {
  padding: 24px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* Inputs */
.dash-content input {
  display: block;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  width: auto;
  max-width: 400px;
}

.dash-content button {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.dash-content button:hover {
  background: #1d4ed8;
}

/* MOBILE */
@media (max-width: 768px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-nav {
    flex-direction: row;
    overflow-x: auto;
  }
}





.room-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  max-width: 600px;
}




.room-card {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  background: white;
}

.room-card strong {
  display: block;
  font-size: 16px;
}

.room-card div {
  margin-top: 4px;
  font-weight: 500;
  color: #111827;
}

.room-card small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
}

.room-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-group summary {
  list-style: none;
}

.action-group summary::-webkit-details-marker {
  display: none;
}


/* shared button system */
.btn {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* edit */
.btn-secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* save */
.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* delete 
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fecaca;
}*/





.slot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.slot-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}


.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  background: white;
}
.slot-row {
  margin-bottom: 12px;
}

.slot-row + .slot-row {
  margin-top: 10px;
}



.slot-info .meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.slot-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.field label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.field input,
.field select {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: white;
}






.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 16px;
}



.embed-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
}

.embed-box h2 {
  margin-top: 0;
}

.code-block {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
}

.code-block pre {
  margin: 0;
}

.copy-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.copy-btn:hover {
  background: #2563eb;
}
.copy-btn {
  transition: all 0.2s ease;
}

.hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
}



.room-create-form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 450px;
}

.room-create-form h3 {
  margin-bottom: 15px;
}

.room-create-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.room-create-form input,
.room-create-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.room-create-form textarea {
  min-height: 100px;
  resize: vertical;
}

.room-create-form .btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
}


.edit-form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 450px;
}

.edit-form h3 {
  margin-bottom: 15px;
}

.edit-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.edit-form input,
.edit-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.edit-form textarea {
  min-height: 100px;
  resize: vertical;
}

.edit-form .btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
}





/* ROOM BLOCK */
.room-block {
  border: 1px solid #ece9e4;
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff;
}

.room-block summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

/* DAY */
.day-block {
  margin-top: 14px;
}

.day-title {
  font-size: 13px;
  color: #6b6760;
  margin-bottom: 6px;
}

/* GRID */
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ACTION ROW */
.slot-pill .actions {
  display: flex;
  align-items: center; /* 👈 this fixes vertical misalignment */
  gap: 8px;
  margin-top: 10px;
}

/* Normalize both controls */
.slot-pill .actions button,
.slot-pill .actions summary {
  margin: 0;              /* 👈 kills hidden offsets */
  padding: 0 10px;

  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;         /* 👈 critical */
  vertical-align: middle; /* 👈 fixes baseline weirdness */

  border-radius: 8px;
  cursor: pointer;
}

/* Remove summary defaults */
.slot-pill .actions summary {
  list-style: none;
}

.slot-pill .actions summary::-webkit-details-marker {
  display: none;
}

/* BASE BUTTON */
.slot-pill .btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #f8f7f5;
  color: #1a1916;
}

/* VARIANTS */
.slot-pill .btn-light {
  border-color: #e5e2dc;
  background: #ffffff;
}

.slot-pill .btn-light:hover {
  background: #f0ede8;
}

.slot-pill .btn-primary {
  background: #1a1916;
  color: #fff;
}

.slot-pill .btn-primary:hover {
  opacity: 0.9;
}

.slot-pill .btn-danger {
  background: #fff;
  border-color: #e5e2dc;
  color: #b42318;
}

.slot-pill .btn-danger:hover {
  background: #fdecec;
  border-color: #f5c2c7;
}


/* EDIT PANEL */
.edit-wrap[open] {
  background: #f8f7f5;
  padding: 10px;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid #ece9e4;
}

/* FORM INSIDE */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.edit-form input {
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #d9d4cc;
  font-size: 12px;
}



.day-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ece9e4;
  border-radius: 12px;
  background: #faf9f7;
}

.day-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a857d;
  margin-bottom: 8px;
}

/* =========================
   SLOT CONTAINER (ONLY BOX)
========================= */
.slot {
  background: #fff;
  border: 1px solid #ece9e4;
  border-radius: 12px;

  padding: 10px 12px;
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

/* Past state */
.slot.is-past {
  opacity: 0.5;
}

/* =========================
   LEFT INFO
========================= */
.slot-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-time {
  font-size: 13px;
  font-weight: 600;
  color: #1a1916;
}

.slot-meta {
  font-size: 11px;
  color: #6b6760;
  display: flex;
  gap: 6px;
}

/* =========================
   ACTIONS (NO BOXES)
========================= */
.slot-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.slot-actions button {
  border: 1px solid #e5e2dc;
  background: #fff;
  border-radius: 8px;

  font-size: 12px;
  padding: 5px 10px;

  cursor: pointer;
}

.btn-delete {
  color: #b42318;
}

/* =========================
   EDIT MODE (FLAT PANEL)
========================= */
.slot-edit {
  display: none;
  width: 100%;
  margin-top: 10px;

  padding-top: 10px;
  border-top: 1px solid #ece9e4;
}

.slot.editing .slot-edit {
  display: block;
}

/* compact grid */
.edit-grid {
  display: flex;
  gap: 10px;
}

.edit-grid label {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #6b6760;
  gap: 2px;
}

/* inputs */
.edit-grid input {
  width: 90px;
  padding: 5px 6px;

  border: 1px solid #d9d4cc;
  border-radius: 6px;
  font-size: 12px;
}

/* edit actions */
.edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-save {
  background: #1a1916;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-cancel {
  background: transparent;
  border: 1px solid #e5e2dc;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}


.slot-actions {
  display: flex !important;
  gap: 6px;
  align-items: center;

  opacity: 1 !important;
  visibility: visible !important;
}

/* ensure buttons are not inheriting “ghost” styles */
.slot-actions button {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex;
}



.slot-actions button {
  background: transparent;
  border: 1px solid #e5e2dc;
  color: #6b6760;
}

.slot-actions button:hover {
  background: #f0ede8;
  color: #1a1916;
}