
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #172554;
}

button {
    font: inherit;
    cursor: pointer;
}

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

/* SIDEBAR */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #10234d;
    color: white;
    padding: 25px 18px;
}

.brand-home {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: white;
    text-align: center;
}

.brand-home h1 {
    font-size: 27px;
    margin: 5px 0;
}

.brand-home p {
    color: #60c9ef;
    font-size: 23px;
    margin: 0 0 15px;
}

.sidebar hr {
    border: 0;
    border-top: 1px solid #5574a9;
    margin: 15px 0 25px;
}

.sidebar > button:not(.brand-home) {
    display: block;
    width: 100%;
    padding: 14px 10px;
    margin: 5px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: white;
    text-align: left;
}

.sidebar > button:hover {
    background: #294477;
}

/* MAIN CONTENT */

.main {
    flex: 1;
    min-width: 0;
    padding: 25px;
}

.dashboard {
    max-width: 1500px;
    margin: auto;
}

/* WELCOME BANNER */

.welcome-banner {
    min-height: 230px;
    padding: 35px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(220,235,255,.55), rgba(255,255,255,.05)),
        url("images/mountain-banner.png") center 55% / cover;
    color: #10234d;
    margin-bottom: 22px;
}

.welcome-banner h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 12px;
}

.welcome-banner h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

.welcome-banner p {
    font-size: 21px;
    font-weight: bold;
    margin: 0;
}

/* QUICK ACTION CARDS */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.shortcut {
    border: none;
    border-radius: 17px;
    padding: 22px 12px;
    min-height: 250px;
    color: #10234d;
    transition: transform .2s;
}

.shortcut:hover {
    transform: translateY(-4px);
}

.shortcut:nth-child(1) {
    background: #e1ebff;
}

.shortcut:nth-child(2) {
    background: #e0f2eb;
}

.shortcut:nth-child(3) {
    background: #eee5ff;
}

.shortcut:nth-child(4) {
    background: #fff0dc;
}

.shortcut span {
    font-size: 48px;
}

.shortcut h2 {
    font-size: 20px;
    margin: 12px 0;
}

.shortcut p {
    font-size: 16px;
    min-height: 42px;
}

.shortcut strong {
    display: inline-block;
    background: #285bb1;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    margin-top: 5px;
}

/* LOWER DASHBOARD */

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    margin-bottom: 20px;
}

.more-shortcuts,
.wellbeing {
    background: white;
    border: 1px solid #dce5fa;
    border-radius: 17px;
    padding: 22px;
    min-width: 0;
}

.more-shortcuts h2,
.wellbeing h2 {
    margin-top: 0;
}

.more-shortcuts button {
    display: block;
    width: 100%;
    padding: 13px 5px;
    border: none;
    border-bottom: 1px solid #e0e7f5;
    background: white;
    color: #172554;
    text-align: left;
    font-size: 16px;
}

.more-shortcuts button:hover {
    background: #f1f5ff;
}

.wellbeing {
    background:
        linear-gradient(90deg, rgba(255,255,255,.93), rgba(255,255,255,.15)),
        url("images/wellbeing-photo.png") center / cover;
}

.wellbeing p {
    font-size: 23px;
    font-style: italic;
    line-height: 1.5;
}

/* RECENT ACTIVITY */

.recent-activity {
    padding: 18px 22px;
    background: #e8efff;
    border-radius: 15px;
}

.recent-activity h2 {
    margin: 0 0 6px;
}

.recent-activity p {
    margin: 0;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 14px;
    }

    .welcome-banner {
        padding: 24px;
    }
}


/* =================================
   JUST TALK - CONVERSATION DESIGN
================================= */

.section-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 25px;
}

.section-page h1 {
  color: #263b52;
  margin-bottom: 8px;
}

.section-description {
  color: #718096;
  margin-bottom: 25px;
}

.back-button {
  background: transparent;
  border: none;
  color: #647b91;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 8px 0;
}

.back-button:hover {
  color: #263b52;
}

.feature-card {
  background: white;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 4px 18px rgba(35, 55, 80, 0.05);
}

.feature-card h3 {
  color: #344b62;
  margin-top: 0;
}

.feature-card p {
  color: #718096;
  line-height: 1.6;
}

.feature-card textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #dce4eb;
  border-radius: 12px;
  padding: 15px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  margin-top: 12px;
}

.feature-card textarea:focus {
  outline: none;
  border-color: #91aeca;
  box-shadow: 0 0 0 3px rgba(145, 174, 202, 0.15);
}

.feature-card button {
  background: #647f9c;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  margin-top: 12px;
  cursor: pointer;
}

.feature-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================
   MINDDOCK - MODERN JUST TALK DESIGN
========================================== */

.just-talk-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px 28px;
}

.just-talk-heading {
  margin-bottom: 15px;
}

.companion-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.companion-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7f0f1;
  color: #587f83;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}

.companion-intro h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
}

.companion-intro p {
  margin: 4px 0 0;
  color: #81909d;
  font-size: 14px;
}

.chat-container {
  background: #ffffff;
  border: 1px solid #edf0f3;
  border-radius: 24px;
  min-height: 620px;
  height: calc(100vh - 230px);
  max-height: 850px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(40, 60, 80, 0.045);
}

.chat-welcome {
  text-align: center;
  max-width: 570px;
  margin: auto;
  padding: 35px 25px;
}

.welcome-heart {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #eaf2f2;
  color: #638b8e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.chat-welcome h2 {
  color: #344b62;
  font-size: 29px;
  font-weight: 650;
  margin: 0 0 12px;
}

.welcome-question {
  color: #526b7c;
  font-size: 17px;
  margin-bottom: 12px;
}

.welcome-description {
  color: #788995;
  line-height: 1.7;
  font-size: 15px;
}

.welcome-reassurance {
  color: #638b8e;
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 25px;
}

.conversation-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.starter-button {
  border: 1px solid #e5ebef;
  background: #ffffff;
  color: #526b7c;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.starter-button:hover {
  background: #f1f6f6;
  border-color: #bfd2d3;
  transform: translateY(-2px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px clamp(16px, 5vw, 65px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.message-row {
  display: flex;
  width: 100%;
  animation: messageAppear 0.25s ease-out;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.assistant {
  justify-content: flex-start;
}

.message-bubble {
  max-width: min(75%, 650px);
  padding: 14px 19px;
  border-radius: 21px;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.message-row.user .message-bubble {
  background: #e7eff7;
  color: #344b62;
  border-bottom-right-radius: 6px;
}

.message-row.assistant .message-bubble {
  background: #f2f5f5;
  color: #455968;
  border-bottom-left-radius: 6px;
}

.typing-bubble {
  color: #84939d !important;
  font-style: italic;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 12px clamp(14px, 4vw, 45px) 0;
  padding: 10px 12px 10px 18px;
  background: #ffffff;
  border: 1px solid #e2e8ed;
  border-radius: 25px;
  box-shadow: 0 3px 15px rgba(40, 60, 80, 0.05);
}

.chat-input-area textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: #344b62;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 8px 0;
  max-height: 140px;
}

.chat-input-area textarea::placeholder {
  color: #9aa7b0;
}

.chat-input-area button {
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border: none;
  border-radius: 50%;
  background: #587f83;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.chat-input-area button:hover {
  background: #456d71;
  transform: scale(1.05);
}

.chat-footer {
  text-align: center;
  color: #a0abb3;
  font-size: 11px;
  padding: 12px 10px 17px;
  margin: 0;
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .just-talk-page {
    padding: 12px;
  }

  .chat-container {
    min-height: 550px;
    height: calc(100vh - 190px);
    border-radius: 18px;
  }

  .chat-welcome {
    padding: 20px 15px;
  }

  .chat-welcome h2 {
    font-size: 24px;
  }

  .starter-button {
    width: 100%;
  }

  .message-bubble {
    max-width: 88%;
  }

  .chat-messages {
    padding: 18px 14px;
  }
}
