/* Hub-only CSS — loaded LAST */

/* Fix original body padding typo: 0 20x -> 0 20px */
body {
  padding: 0 20px 20px 20px;
}

/* Header */
.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 140px;
  padding: 60px 40px 70px;
}

.hub-header__logo {
  height: 56px;
  width: auto;
  position: absolute;
  top: 10px;
  left: 10px;
}

@media (max-width: 1024px) {
  .hub-header__logo {
    position: static;
    height: 40px;
    margin: 6px 8px 6px 0;
  }
}

.hub-header__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hub-header__brand-img {
  height: 220px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.hub-auth {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Dashboard bar */

  /* layout & component behavior are in shared layout/components.css;
     here we only keep any hub-specific tweaks if needed */


/* Feature buttons */
#hubNav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 12px;
  margin-top: var(--space-8);
  margin-bottom: var(--space-20);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
}
.hub-btn {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--easing-standard);
}

/* Right rail */
.rail__title { margin: 0 0 10px 0; font-size: 16px; text-align: left; }
.rail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.rail__chip {
  display: inline-block;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-8);
  background: var(--color-bg);
}
.rail__chip-title { font-weight: 600; font-size: 13px; line-height: 1.2; }
.rail__chip-sub   { font-size: 12px; line-height: 1.2; color: var(--color-muted); }

.status-text { font-size: 14px; text-align: left; color: var(--color-muted); }

/* Journal module */
.journal { padding: var(--space-16); }
.journal__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.journal__title { margin: 0; }
/* Buttons use both classes in markup: class="hub-btn journal__btn" */
.journal__field {
  width: 100%;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-8);
  padding: 8px 12px;
  font-size: 16px;
  background: var(--color-bg);
  margin-bottom: 15px;

}

  

.journal__textarea {
  width: 100%;
  min-height: 60vh;
  resize: vertical;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-8);
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
  background: var(--color-bg);
}
.journal__status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-accent);
  text-align: left;
}

/* Chat used by Hub Assistant */
.chat { display: flex; flex-direction: column; height: 100%; max-width: 900px; margin: 0 auto; padding: 16px; }
.chat__title { margin-top: 0; }
.chat__messages {
  flex: 1 1 auto;
  min-height: 300px;
  border: 1px solid var(--color-accent);
  padding: 12px;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius-8);
}
.chat__form { display: flex; gap: 8px; margin-top: 12px; }
.chat__input {
  flex: 1 1 auto;
  padding: 10px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
}
.chat__hint { font-size: 12px; color: var(--color-muted); margin-top: 6px; text-align: left; }
/* ── Notes module (canonical) ───────────────────────────────────────────────
   References:
     - Markup: src/features/modules/notes.js → #noteComposer, #newNoteName, #newNoteText
     - Layout grid: /styles/layouthub.css (#mainContainer two-column grid)
     - Stylesheet: /styles/hub.css (this file)
----------------------------------------------------------------------------- */

.notes { padding: var(--space-16); }

/* Keep composer in normal block flow under the title */
.notes__title   { display: block; margin: 0 0 8px; }
.notes__composer{ display: block; clear: both; margin-bottom: 14px; }

/* Name input: full-width, stacked */
.notes__name {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 8px;
  background: var(--color-bg);
  box-sizing: border-box;
  margin-bottom: 8px; /* space above the textarea */
}

/* Textarea: full-width, stacked under the name */
.notes__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 8px;
  background: var(--color-bg);
  box-sizing: border-box;
  margin-bottom: 8px; /* space above the textarea */
}

/* Existing list rows (unchanged look) */
.notes__row {
  border: 1px solid var(--color-accent);
  padding: 14px;
  border-radius: var(--radius-8);
  margin-bottom: 14px;
  background: var(--color-bg);
}
.notes__edit {
  min-height: 72px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 8px;
  background: var(--color-bg);
  box-sizing: border-box;
}
.notes__row-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.notes__time     { color: var(--color-muted); font-size: 12px; }
.notes__actions  { display: flex; gap: 8px; }

/* Helpers already present in your CSS */
.notes__btn--danger { color: #b00020; }
.is-hidden { display: none !important; }


/* Buttons use class="hub-btn notes__btn" in markup */
.notes__btn--danger { color: #b00020; } /* if you have a danger token, use it */

/* Helpers */
.is-hidden { display: none !important; }

.hub-footer { padding: 15px 20px; background: var(--color-bg); border-top: 1px solid var(--color-bg); text-align: center; }
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 10px; color: #495057; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Ultra-compact calendar styles moved to styles/calendar.css */


/* Chips row under the mini calendar */
.rail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
}
.rail__chip {
  display: inline-block;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #b08a48;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.rail__chip-title { font-weight: 600; font-size: 12px; line-height: 1.2; display: block; }
.rail__chip-sub   { font-size: 11px; line-height: 1.2; color: #6c757d; display: block; }

/* Hide the old panels/list UI */
#railENtabs,
#panelEvents,
#panelNotes,
#rightEventsList { display: none !important; }

