/* chatbot.css - Premium Dooper Chatbot Interface stylesheet (user.dooper.in Color Scheme) */

:root {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --accent-color: #e40443;
  --accent-gradient: linear-gradient(135deg, #e40443 0%, #ff4f7f 100%);
  --accent-gradient-cyan: linear-gradient(135deg, #e40443 0%, #ff4f7f 100%);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --sidebar-width: 280px;
  --font-family-body: 'Inter', sans-serif;
  --font-family-header: 'Space Grotesk', sans-serif;
  --shadow-main: 0 4px 20px rgba(15, 23, 42, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.8);
}

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

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(228, 4, 67, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(228, 4, 67, 0.3);
}

/* Sidebar Layout */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  transition: transform 0.3s ease;
  z-index: 10;
  position: relative;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  height: 32px;
  display: block;
}

.sidebar-brand {
  font-family: var(--font-family-header);
  font-weight: 700;
  font-size: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.sidebar-actions {
  padding: 16px 20px;
}

.new-chat-btn {
  width: 100%;
  background: rgba(228, 4, 67, 0.04);
  border: 1px solid rgba(228, 4, 67, 0.15);
  color: var(--accent-color);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.new-chat-btn:hover {
  background: rgba(228, 4, 67, 0.08);
  border-color: rgba(228, 4, 67, 0.25);
  transform: translateY(-1px);
}

.new-chat-btn svg {
  stroke-width: 2.5;
}

/* Navigation tabs in sidebar */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

.nav-item.active {
  color: var(--accent-color);
  background: rgba(228, 4, 67, 0.06);
  border-left: 3px solid var(--accent-color);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* History Section */
.history-section {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding-left: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.history-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.history-item-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.history-item-text {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.history-item:hover .history-item-text {
  color: var(--text-main);
}

.history-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.history-item:hover .history-delete-btn {
  opacity: 1;
}

.history-delete-btn:hover {
  color: #ff5252;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--bg-primary) 100%);
}

/* Chat Header */
.chat-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-mode-badge {
  display: none;
}

.chat-title {
  font-family: var(--font-family-header);
  font-size: 16px;
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.header-icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-icon-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

/* Chat Messages */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.message-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 16px;
}

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

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.message-wrapper.user .message-avatar {
  background: var(--accent-gradient);
  border: none;
}

.message-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 52px);
}

.message-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.message-wrapper.ai .message-bubble {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-top-left-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.message-wrapper.user .message-bubble {
  background: var(--accent-gradient);
  color: #fff;
  border-top-right-radius: 0;
  box-shadow: 0 4px 15px rgba(228, 4, 67, 0.18);
}

.message-time {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}

.message-wrapper.user .message-time {
  text-align: right;
}

/* Welcome Screen Overlay (Empty Chat) */
.welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.welcome-logo {
  font-size: 50px;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.welcome-title {
  font-family: var(--font-family-header);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.welcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.welcome-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.welcome-card:hover {
  background: var(--bg-secondary);
  border-color: rgba(228, 4, 67, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 4, 67, 0.05);
}

.welcome-card-icon {
  font-size: 24px;
}

.welcome-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.welcome-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Chat Input Section */
.chat-input-container {
  padding: 10px 20px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  z-index: 5;
}

.chat-input-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.input-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.input-box:focus-within {
  border-color: rgba(228, 4, 67, 0.4);
  box-shadow: 0 0 15px rgba(228, 4, 67, 0.08);
}

.input-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.input-btn:hover {
  color: var(--accent-color);
  background: rgba(228, 4, 67, 0.04);
}

.chat-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-family-body);
  font-size: 15px;
  resize: none;
  min-height: 24px;
  max-height: 200px;
  line-height: 1.5;
  padding: 8px 0;
}

.chat-textarea::placeholder {
  color: var(--text-muted);
}

.send-btn {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(228, 4, 67, 0.3);
}

.send-btn svg {
  fill: currentColor;
}

.send-btn:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.input-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 8px 4px;
  align-items: center;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.2; }
  40% { transform: scale(1); opacity: 1; }
}

/* Modals & Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 20;
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 460px;
  z-index: 21;
  display: none;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-family-header);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-family-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent-color);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(228, 4, 67, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: translate(-50%, -40%) scale(0.95); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Disease selection list in Self Health Checkup Welcome */
.disease-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.disease-tag {
  background: rgba(228, 4, 67, 0.04);
  border: 1px solid rgba(228, 4, 67, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: var(--accent-color);
  transition: all 0.2s ease;
}

.disease-tag:hover {
  background: rgba(228, 4, 67, 0.08);
  transform: translateY(-1px);
}

/* Sidebar Toggle for Mobile */
.mobile-sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  margin-right: 12px;
}

.mobile-sidebar-toggle:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

/* Sidebar Close Button (mobile only) */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(228, 4, 67, 0.06);
  border: 1px solid rgba(228, 4, 67, 0.15);
  border-radius: 10px;
  color: var(--accent-color);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 12;
  line-height: 1;
}

.sidebar-close-btn:hover {
  background: rgba(228, 4, 67, 0.12);
  transform: scale(1.05);
}

/* Sidebar Overlay Backdrop (mobile only) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===================== RESPONSIVE STYLES ===================== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
    z-index: 100;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-header {
    padding: 20px 16px;
    padding-right: 50px; /* Space for close button */
  }

  .mobile-sidebar-toggle {
    display: flex;
  }

  /* Main Content - full width on mobile */
  .main-content {
    width: 100%;
  }

  /* Chat Header */
  .chat-header {
    height: 56px;
    padding: 0 14px;
  }

  .chat-title {
    font-size: 14px;
  }

  .chat-mode-badge {
    font-size: 10px;
  }

  /* Messages area */
  .chat-messages-container {
    padding: 16px 12px;
    gap: 16px;
  }

  .message-wrapper {
    max-width: 100%;
    gap: 10px;
  }

  .message-bubble {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
  }

  .message-bubble-wrap {
    max-width: calc(100% - 42px);
  }

  /* Welcome Screen */
  .welcome-screen {
    padding: 24px 16px;
  }

  .welcome-logo {
    font-size: 40px;
    margin-bottom: 14px;
  }

  .welcome-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .welcome-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 100%;
    padding: 0 8px;
  }

  .welcome-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .welcome-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .welcome-card-title {
    font-size: 14px;
  }

  .welcome-card-desc {
    font-size: 12px;
  }

  /* Chat Input Area */
  .chat-input-container {
    padding: 8px 10px 16px 10px;
  }

  .chat-input-wrapper {
    max-width: 100%;
  }

  .input-box {
    padding: 8px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .chat-textarea {
    font-size: 14px;
    padding: 6px 0;
  }

  .send-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .input-btn {
    padding: 6px;
  }

  .input-disclaimer {
    font-size: 10px;
    margin-top: 6px;
    padding: 0 4px;
  }

  /* Checkup Grid */
  .checkup-grid {
    grid-template-columns: 1fr;
  }

  .checkup-grid-container {
    max-height: 300px;
    padding: 4px 8px 4px 2px;
  }

  .checkup-card {
    padding: 12px 16px;
  }

  /* Disease tags */
  .disease-tags {
    gap: 6px;
  }

  .disease-tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* Condition cards */
  .condition-status-card {
    padding: 12px;
    font-size: 14px;
  }

  /* Checkup buttons */
  .checkup-buttons-container {
    gap: 8px;
  }

  .checkup-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Chat file chips */
  .chat-file-chip {
    max-width: 200px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .chat-file-chip .chip-name {
    max-width: 100px;
  }

  /* Report context banner */
  .report-context-banner {
    margin: 0 8px 6px 8px;
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Modals */
  .modal {
    width: 94%;
    max-width: 400px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-body {
    padding: 18px;
  }

  /* History section */
  .history-section {
    padding: 16px 12px 12px 12px;
  }

  /* Sidebar nav */
  .sidebar-nav {
    padding: 0 12px;
  }

  .nav-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Sidebar profile */
  .sidebar-profile {
    padding: 8px 12px;
  }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
  .welcome-title {
    font-size: 20px;
  }

  .welcome-subtitle {
    font-size: 13px;
  }

  .chat-title {
    font-size: 13px;
  }

  .message-bubble {
    padding: 10px 12px;
    font-size: 13px;
  }

  .sidebar {
    width: 90%;
  }
}

/* Checkup Mode Options Layout */
/* Checkup Grid Container */
.checkup-grid-container {
  width: 100%;
  max-width: 600px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 24px;
  padding: 8px 12px 8px 4px;
}

.checkup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.checkup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.checkup-card:hover {
  border-color: rgba(228, 4, 67, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 4, 67, 0.06);
}

.checkup-card .card-icon {
  font-size: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkup-card .card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  line-height: 1.3;
}

/* ===================== CHAT FILE PREVIEW STRIP ===================== */
.chat-file-preview-strip {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(228, 4, 67, 0.02);
  border-radius: 16px 16px 0 0;
  animation: stripSlideIn 0.3s ease;
}

.chat-file-preview-strip.has-files {
  display: flex;
}

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

.chat-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(228, 4, 67, 0.06);
  border: 1px solid rgba(228, 4, 67, 0.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  animation: chipPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 240px;
}

@keyframes chipPopIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.chat-file-chip .chip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.chat-file-chip .chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.chat-file-chip .chip-status {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-file-chip .chip-status.ready {
  color: #16a34a;
}

.chat-file-chip .chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-file-chip .chip-remove:hover {
  color: var(--accent-color);
  background: rgba(228, 4, 67, 0.1);
}

/* Loading spinner for chip */
.chip-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(228, 4, 67, 0.15);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: chipSpin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes chipSpin {
  to { transform: rotate(360deg); }
}

/* Report context active indicator in input box */
.input-box.has-report-context {
  border-color: rgba(228, 4, 67, 0.3);
  box-shadow: 0 0 0 3px rgba(228, 4, 67, 0.06);
}

/* Report context banner above messages */
.report-context-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0 16px 8px 16px;
  background: linear-gradient(135deg, rgba(228, 4, 67, 0.04) 0%, rgba(255, 79, 127, 0.04) 100%);
  border: 1px solid rgba(228, 4, 67, 0.12);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
  animation: bannerFadeIn 0.4s ease;
}

.report-context-banner .banner-icon {
  font-size: 16px;
}

.report-context-banner .banner-text {
  flex: 1;
}

.report-context-banner .banner-text strong {
  color: var(--accent-color);
}

.report-context-banner .banner-clear {
  background: none;
  border: 1px solid rgba(228, 4, 67, 0.15);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-context-banner .banner-clear:hover {
  background: rgba(228, 4, 67, 0.08);
  color: var(--accent-color);
}

@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Attach button active state when files are attached */
.input-btn.has-attachment {
  color: var(--accent-color);
  background: rgba(228, 4, 67, 0.08);
}

/* Health Checkup Condition Cards */
.condition-status-card {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-header);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.condition-status-card.red {
  background: #fff0f3;
  border-left: 5px solid #ff3366;
  color: #ff3366;
}

.condition-status-card.yellow {
  background: #fffbeb;
  border-left: 5px solid #d97706;
  color: #d97706;
}

.condition-status-card.green {
  background: #f0fdf4;
  border-left: 5px solid #16a34a;
  color: #16a34a;
}

.condition-status-card .status-icon {
  font-size: 24px;
}

.condition-status-card .status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.condition-status-card .status-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.condition-status-card .status-value {
  font-size: 16px;
  font-weight: 700;
}

/* Quick response checkup buttons container */
.checkup-buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  animation: buttonsSlideIn 0.3s ease;
}

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

/* Base button styling */
.checkup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Yes button custom style */
.checkup-btn.yes {
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
  background: rgba(16, 185, 129, 0.02);
}
.checkup-btn.yes:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* No button custom style */
.checkup-btn.no {
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.02);
}
.checkup-btn.no:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Not sure button custom style */
.checkup-btn.not-sure {
  border-color: rgba(100, 116, 139, 0.25);
  color: #64748b;
  background: rgba(100, 116, 139, 0.02);
}
.checkup-btn.not-sure:hover {
  background: #64748b;
  border-color: #64748b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

/* Clickable suggestion questions styling */
.suggested-query {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(228, 4, 67, 0.04);
}

.suggested-query:hover {
  color: #ff4f7f;
  text-decoration-style: solid;
  background: rgba(228, 4, 67, 0.09);
  transform: translateY(-1px);
}

/* Sidebar Profile & Auth Styles */
.sidebar-user-section {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(228, 4, 67, 0.04);
  border: 1px solid rgba(228, 4, 67, 0.15);
  border-radius: 12px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  justify-content: center;
}

.sidebar-auth-btn:hover {
  background: rgba(228, 4, 67, 0.08);
  border-color: rgba(228, 4, 67, 0.25);
  transform: translateY(-1px);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(228, 4, 67, 0.08);
  border: 1px solid rgba(228, 4, 67, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
}

.sidebar-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-username {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.sidebar-logout-btn:hover {
  color: #ff4f7f;
}



