
/* ========================================
   DASHBOARD — COMPLETE STYLES
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #101010;
  --surface: #191919;
  --surface-light: #222222;
  --border: #303030;
  --text: #f1eee8;
  --muted: #99938b;
  --accent: #c5a47e;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  padding: 0 7%;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ========================================
   TOP BAR
======================================== */

.topbar {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 65px;
  flex-wrap: wrap;
}

.logo {
  color: var(--accent);
  font-size: 27px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 2px;
}

.topbar > span:not(.status) {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.status {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
}

#logoutButton {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  transition: 0.3s;
}

#logoutButton:hover {
  background: var(--surface-light);
  border-color: var(--accent);
}

/* ========================================
   MAIN CONTAINER
======================================== */

.container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
}

/* ========================================
   WELCOME SECTION
======================================== */

.welcome {
  margin-bottom: 55px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.welcome h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

#today {
  color: var(--muted);
  font-size: 13px;
}

.live-clock {
  color: var(--accent);
  font-size: 21px;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* ========================================
   CHEF'S LAB SUMMARY
======================================== */

.chef-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 35px;
  margin-bottom: 65px;
}

.chef-summary > h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 25px;
}

.chef-stats {
  margin: 25px 0;
  display: flex;
  align-items: center;
}

.chef-stats p {
  color: var(--muted);
  font-size: 14px;
}

.chef-stats h3 {
  color: var(--accent);
  font-size: 34px;
  font-weight: 400;
  margin-top: 5px;
}

.latest-recipe {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 20px;
  margin-bottom: 25px;
}

.latest-recipe h3 {
  font-size: 23px;
  font-weight: 400;
  margin: 8px 0;
}

.latest-recipe > p:last-child {
  color: var(--muted);
  font-size: 13px;
}

/* ========================================
   ROOM CARDS
======================================== */

.rooms {
  margin-bottom: 65px;
}

.section-heading {
  font-size: 29px;
  font-weight: 400;
  margin-bottom: 25px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.room-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 25px;
  min-height: 185px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.room-card:hover {
  background: var(--surface-light);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.room-icon {
  display: block;
  font-size: 25px;
  margin-bottom: 20px;
}

.room-card h3 {
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
}

.room-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Chef's Lab featured link */

.chef-link {
  min-height: auto;
  padding: 22px;
}

.chef-link h3 {
  font-size: 18px;
}

/* ========================================
   QUICK NOTES
======================================== */

.quick-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  margin-bottom: 60px;
}

.quick-notes h2 {
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 20px;
}

#noteInput {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

#noteInput:focus {
  border-color: var(--accent);
}

#saveNote {
  margin-top: 14px;
  padding: 12px 22px;
  background: var(--accent);
  color: #151515;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  transition: 0.3s;
}

#saveNote:hover {
  opacity: 0.8;
}

#noteStatus {
  color: var(--accent);
  font-size: 13px;
  margin-top: 12px;
}

#savedNotes {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.saved-note {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.saved-note p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.saved-note button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 10px;
  cursor: pointer;
}

.saved-note button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================
   FOOTER
======================================== */

.dashboard-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 25px 0 35px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.dashboard-footer a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0;
}

.dashboard-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.room-card:focus-visible,
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

  body {
    padding: 0 5%;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    margin-bottom: 50px;
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  body {
    padding: 0 18px;
  }

  .topbar {
    min-height: auto;
    padding: 20px 0;
    margin-bottom: 40px;
    gap: 14px;
  }

  .logo {
    font-size: 23px;
  }

  .topbar > span:not(.status) {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .status {
    font-size: 9px;
  }

  #logoutButton {
    padding: 8px 11px;
    font-size: 10px;
  }

  .welcome {
    margin-bottom: 38px;
  }

  .welcome h1 {
    font-size: 38px;
  }

  .subtitle {
    font-size: 14px;
  }

  .live-clock {
    font-size: 18px;
  }

  .chef-summary {
    padding: 22px;
    margin-bottom: 45px;
  }

  .chef-summary > h2 {
    font-size: 26px;
  }

  .chef-stats h3 {
    font-size: 29px;
  }

  .latest-recipe h3 {
    font-size: 20px;
  }

  .section-heading {
    font-size: 26px;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .room-card {
    min-height: 155px;
    padding: 17px;
  }

  .room-icon {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .room-card h3 {
    font-size: 16px;
  }

  .room-card p {
    font-size: 12px;
  }

  .chef-link {
    padding: 18px;
  }

  .quick-notes {
    padding: 22px;
  }

  .quick-notes h2 {
    font-size: 24px;
  }

  .saved-note {
    flex-direction: column;
  }

}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 360px) {

  .room-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 10px;
  }

}

/* ========================================
   HER MESSAGES — INLINE PRIVATE INBOX
======================================== */
.her-messages {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  margin: 0 0 65px;
}
.her-messages-heading {
  display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap;
}
.her-messages-heading h2 { font-size:29px; font-weight:400; margin:4px 0 8px; }
.her-messages-sub { color:var(--muted); font-size:13px; max-width:520px; }
#refreshHerMessages {
  background:transparent; border:1px solid var(--border); color:var(--text);
  padding:10px 15px; font-family:inherit; font-size:11px; letter-spacing:1px; cursor:pointer;
}
#refreshHerMessages:hover { border-color:var(--accent); color:var(--accent); }
#herMessagesStatus { color:var(--accent); font-size:13px; margin:18px 0; }
#herMessagesList { display:grid; gap:14px; }
.her-messages-empty { color:var(--muted); padding:18px 0; }
.her-message-card { border:1px solid var(--border); background:var(--bg); padding:20px; }
.her-message-meta { color:var(--muted); font-size:11px; letter-spacing:.5px; margin-bottom:10px; }
.her-message-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; }
.her-message-existing-reply { border-left:2px solid var(--accent); margin:18px 0 0 10px; padding:12px 0 0 16px; }
.her-message-reply-form { margin-top:18px; display:grid; gap:10px; }
.her-message-reply-form textarea { width:100%; min-height:100px; resize:vertical; padding:14px; background:var(--surface); border:1px solid var(--border); color:var(--text); font:inherit; }
.her-message-reply-form button { justify-self:start; padding:11px 17px; border:0; background:var(--accent); color:#151515; font:inherit; font-size:11px; letter-spacing:1px; cursor:pointer; }
.her-message-reply-form button:disabled { opacity:.6; cursor:wait; }
@media(max-width:600px) {
  .her-messages { padding:20px; margin-bottom:45px; }
  .her-messages-heading h2 { font-size:25px; }
  .her-message-card { padding:16px; }
  .her-message-reply-form button { width:100%; }
}

/* LIVE PRIVATE CHAT */
.her-message-actions{display:flex;gap:8px;flex-wrap:wrap}.her-message-actions button,#enablePrivateNotifications{background:transparent;border:1px solid var(--border);color:var(--text);padding:9px 12px;font:inherit;font-size:10px;letter-spacing:.7px;cursor:pointer}.her-chat-thread{border:1px solid var(--border);padding:18px;background:var(--bg);border-radius:14px}.her-chat-thread-label{font-size:12px;color:var(--accent);letter-spacing:1px;margin:0 0 14px}.her-chat-stream{display:grid;gap:12px}.her-chat-bubble{max-width:88%;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.her-chat-bubble.from-amit{margin-left:auto;border-color:var(--accent);background:var(--surface)}.her-chat-bubble .her-message-meta{margin:0 0 6px}.her-chat-bubble .her-message-body{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.her-message-reply-form{margin-top:16px}.her-message-reply-form textarea{min-height:76px}.her-message-actions button:disabled{opacity:.5}@media(max-width:600px){.her-chat-thread{padding:12px}.her-chat-bubble{max-width:95%;padding:12px}}

/* PUSH NOTIFICATIONS */
.her-message-actions button{background:transparent;border:1px solid var(--border);color:var(--text);padding:9px 12px;font:inherit;font-size:10px;letter-spacing:.7px;cursor:pointer}.her-message-actions button:disabled{opacity:.5}

.her-message-actions .clear-chat-button{border-color:#b85c64;color:#b85c64}.her-message-actions .clear-chat-button:hover{background:rgba(184,92,100,.08)}

/* HER CRAVINGS — dashboard menu-choice cards */
.her-cravings{background:var(--surface);border:1px solid var(--border);padding:30px;margin:0 0 65px}.her-cravings-heading h2{font-size:29px;font-weight:400;margin:4px 0 8px}.her-cravings-heading>p:last-child{color:var(--muted);font-size:13px}.her-cravings-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0;color:var(--accent);font-size:13px}.her-cravings-toolbar button{background:transparent;border:1px solid var(--border);color:var(--text);padding:10px 15px;font:inherit;font-size:11px;letter-spacing:1px;cursor:pointer}.her-cravings-list{display:grid;gap:12px}.her-cravings-empty{color:var(--muted);padding:18px 0}.her-cravings-card{background:var(--bg);border:1px solid var(--border);padding:20px;border-radius:12px}.her-cravings-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.her-cravings-top h3{font-size:22px;font-weight:400;margin:0 0 8px}.her-cravings-top p{font-size:11px;color:var(--muted);margin:0}.her-cravings-meal{display:inline-block;color:var(--accent);font-size:12px;margin:4px 0 12px}.her-cravings-state{display:block;font-size:11px;letter-spacing:1px;margin-bottom:14px;color:var(--accent)}.her-cravings-state.state-planned{color:#b6a0cc}.her-cravings-state.state-surprised{color:#cc8b9e}.her-cravings-actions{display:flex;gap:8px;flex-wrap:wrap}.her-cravings-actions button{padding:10px 13px;background:transparent;border:1px solid var(--border);color:var(--text);font:inherit;font-size:10px;letter-spacing:.5px;cursor:pointer}.her-cravings-actions button:disabled{opacity:.45;cursor:default}@media(max-width:600px){.her-cravings{padding:20px;margin-bottom:45px}.her-cravings-heading h2{font-size:25px}.her-cravings-card{padding:16px}.her-cravings-actions button{flex:1;min-width:120px}}

.her-cravings-actions .her-cravings-delete{border-color:#b85c64;color:#b85c64}.her-cravings-actions .her-cravings-delete:hover{background:rgba(184,92,100,.08)}
