/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Layout */
html, body {
  height: 100%;
  margin: 0;
  background: #f7f7f7 !important;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar: fixed to the left */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  z-index: 100;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo-img {
  /* constrain the width and preserve aspect‑ratio */
  max-width: 200px;
  width: 100%;
  height: auto;
  /* if you need spacing: */
  margin-right: 12px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: center;
}

.sidebar-btn {
  background: #bcd0e6;
  color: #222;
  border: none;
  border-radius: 20px;
  padding: 12px 32px;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
  width: 80%;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-btn:hover {
  background: #a0b8d8;
}

.sidebar-footer {
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
}

.sidebar-logout {
  color: #6c757d;
  font-size: 1rem;
  text-decoration: none;
}

.sidebar-logout:hover {
  text-decoration: underline;
}

/* Main content: add left and right margin to avoid overlap with fixed panels */
.main-content {
  flex: 1;
  margin-left: 220px; /* width of sidebar */
  margin-right: 340px; /* width of right-panel */
  min-height: 100vh;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f7f7f7;
  padding: 10px 0;
}

.tab {
  font-size: 1.3rem;
  font-weight: 500;
  color: #888;
  padding: 8px 32px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
}

.tab.active {
  color: #222;
  border-bottom: 3px solid #222;
  background: #fff;
}

.content-area {
  background: #fdf6e3;
  border-radius: 8px;
  padding: 24px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #222;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 24px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  flex-grow: 1;
  overflow: visible; /* Ensure no inner scrollbars */
}

.journal-form {
  display: flex;
  flex-direction: column;
}

.journal-header {
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 2px solid #e6dfba;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.journal-date-container {
  background-color: #f0e8c9;
  border: 2px solid #d9cfa8;
  border-radius: 8px;
  padding: 10px 16px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.journal-date-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f3720;
  padding: 4px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.journal-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: visible; /* Ensure no inner scrollbars */
}

.journal-textarea {
  width: 100%;
  border-radius: 8px;
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  background: #fffbe6;
  color: #222;
  box-sizing: border-box;
  min-height: 200px;
  resize: none;
  margin-bottom: 0;
  overflow: hidden; /* Hide scrollbar in textarea */
  outline: none;
}

.journal-footer {
  margin-top: 16px;
  text-align: left;
}

/* Right panel: fixed to the right */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 32px 24px 0 0;
  background: #f7f7f7; /* match main-content background */
  z-index: 100;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.feature-tab {
  background: #fff;
  color: #444;
  border-radius: 16px 0 0 16px;
  padding: 8px 28px 8px 18px;
  font-size: 1.08rem;
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 8px;
  margin-right: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, font-weight 0.18s;
  text-align: right;
  min-width: 120px;
  user-select: none;
}

.feature-tab:hover {
  background: #e3eaf6;
  color: #1a3a5d;
}

.feature-tab.active {
  background: #bcd0e6;
  color: #1a3a5d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.chat-bubble-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.chat-bubble {
  background: #bcd0e6;
  border-radius: 24px;
  padding: 24px 32px;
  margin-bottom: 8px;
  margin-top: 0;
  max-width: 320px;
  display: none;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.chat-bubble.active {
  display: flex;
}

.chat-bubble-close {
  background: none;
  border: none;
  color: #555;
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 16px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .right-panel {
    display: none;
  }
  .main-content {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 0 8px;
  }
}
