/* ==========================================================================
   Health Awareness Assistant - Ultra-Modern Dark Luxury Health Theme
   Designed to match Apple Health / Modern AI Medical Companion standards
   ========================================================================== */

:root {
    --bg-darkest: #060b17;
    --bg-main: #0a1124;
    --bg-surface: #111c34;
    --bg-surface-elevated: #162444;
    --bg-surface-glass: rgba(17, 28, 52, 0.75);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(6, 182, 212, 0.35);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #060b17;
    
    --cyan-primary: #06b6d4;
    --cyan-glow: #22d3ee;
    --cyan-dark: #0e7490;
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-emerald: linear-gradient(135deg, #10b981, #059669);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #6366f1);
    --gradient-coral: linear-gradient(135deg, #f43f5e, #fb7185);
    --gradient-card-hero: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.12));
    
    --emerald-accent: #10b981;
    --purple-accent: #8b5cf6;
    --danger-accent: #f43f5e;
    --warning-accent: #f59e0b;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    font-family: var(--font-sans);
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Main Viewport Container */
.app-viewport {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.08), transparent 30%),
                radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.06), transparent 35%),
                var(--bg-darkest);
}

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

.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-logo-ring {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.brand-headings h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Right Header Controls */
.nav-user-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-greeting-badge {
    display: flex;
    flex-direction: column;
    text-align: right;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
}

.user-greeting-badge:hover {
    background: rgba(255, 255, 255, 0.06);
}

.edit-name-mini-icon {
    font-size: 0.72rem;
    color: var(--cyan-glow);
    margin-left: 4px;
    opacity: 0.8;
}

.greeting-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.greeting-text strong {
    font-weight: 700;
    color: var(--cyan-glow);
}

.user-subrole {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Health Score Pill */
.health-score-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.health-score-pill:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.score-mini-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--emerald-accent);
    color: #042f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
}

.score-mini-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.score-mini-info .score-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-mini-info .score-val {
    font-size: 0.78rem;
    font-weight: 700;
}

.header-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-round-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-smooth);
}

.icon-round-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: var(--danger-accent);
    border-radius: 50%;
}

.user-avatar-wrap {
    cursor: pointer;
}

.user-nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan-primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.user-nav-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    color: var(--cyan-glow);
    font-size: 0.95rem;
}

/* ==========================================================================
   WORKSPACE LAYOUT & DESKTOP SIDEBAR
   ========================================================================== */

.workspace-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Desktop Sidebar Nav */
.desktop-sidebar-nav {
    width: 230px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 14px;
    flex-shrink: 0;
}

.nav-tabs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-tab-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.nav-tab-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.nav-tab-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-tab-item.active {
    background: var(--gradient-cyan);
    color: white;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.sidebar-safety-box {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Dynamic Views Switcher Container */
.dynamic-views-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.tab-view {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeInView 0.25s ease forwards;
}

.tab-view.active {
    display: flex;
    flex-direction: column;
}

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

.view-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 80px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ==========================================================================
   VIEW 1: HOME DASHBOARD
   ========================================================================== */

/* Hero Scan Card */
.scan-hero-card {
    background: var(--gradient-card-hero);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

.scan-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-glow);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scan-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.scan-hero-content h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.scan-hero-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-btn-wrap {
    margin-top: 4px;
}

.hero-scan-btn {
    background: var(--gradient-cyan) !important;
    color: #ffffff !important;
    padding: 12px 26px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.45) !important;
    transition: all var(--transition-smooth) !important;
    min-height: 44px !important;
}

.hero-scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.65) !important;
}

.scan-hero-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.scan-visual-hint {
    font-size: 0.74rem;
    color: var(--cyan-glow);
    font-weight: 600;
}

.face-scanner-graphic {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: rgba(17, 28, 52, 0.8);
    border: 2px dashed var(--cyan-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--cyan-glow);
    position: relative;
    overflow: hidden;
}

.scanner-laser-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--cyan-glow);
    box-shadow: 0 0 10px var(--cyan-glow);
    animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
    0%, 100% { top: 0%; opacity: 0.3; }
    50% { top: 95%; opacity: 1; }
}

/* Quick Health Topics 2x3 Grid */
.section-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subheading {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--cyan-glow);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text-link:hover {
    text-decoration: underline;
}

.quick-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.topic-pill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.topic-pill-card:hover {
    border-color: var(--cyan-primary);
    background: var(--bg-surface-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.topic-pill-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.icon-nutrition { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.icon-exercise  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-sleep     { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.icon-mental    { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.icon-hydration { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.icon-hygiene   { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }

.topic-pill-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topic-pill-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Daily Tip Banner */
.daily-tip-banner {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.84rem;
    color: #fde68a;
}

.tip-icon {
    font-size: 1.3rem;
    color: var(--warning-accent);
    flex-shrink: 0;
}

.home-disclaimer-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   VIEW 2: CHAT WITH SESSIONS HISTORY
   ========================================================================== */

.chat-view-layout {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* History Sidebar / Drawer */
.chat-history-sidebar {
    width: 270px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 16px;
    flex-shrink: 0;
    transition: all var(--transition-smooth);
    z-index: 50;
}

.history-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.history-title i {
    color: var(--cyan-glow);
}

.btn-icon-subtle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

.btn-icon-subtle:hover {
    color: var(--text-primary);
}

.new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    color: var(--cyan-glow);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all var(--transition-smooth);
}

.new-chat-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan-glow);
}

.history-sessions-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.history-item.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
}

.history-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-date {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.history-item-del {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.history-item:hover .history-item-del {
    opacity: 1;
}

.history-item-del:hover {
    color: var(--danger-accent);
}

.clear-all-history-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.clear-all-history-btn:hover {
    color: var(--danger-accent);
}

/* Chat Main Area */
.chat-conversation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-darkest);
    overflow: hidden;
}

.chat-top-toolbar {
    padding: 10px 20px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.history-toggle-btn:hover {
    color: var(--text-primary);
}

.chat-assistant-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assistant-status-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.assistant-status-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.1;
}

.status-online-dot {
    font-size: 0.7rem;
    color: var(--emerald-accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-online-dot .dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-accent);
    border-radius: 50%;
}

.clear-chat-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-chat-action-btn:hover {
    color: var(--text-primary);
}

/* Suggestion Chips Bar */
.chat-suggestion-chips-bar {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.chips-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--cyan-glow);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chips-scroll-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chips-scroll-track::-webkit-scrollbar {
    display: none;
}

.chip-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.chip-bubble:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan-primary);
    color: white;
}

/* Message Stream */
.chat-messages-stream {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-row {
    display: flex;
    gap: 12px;
    max-width: 84%;
    animation: fadeInBubble 0.25s ease forwards;
}

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

.message-row.assistant {
    align-self: flex-start;
}

.message-row.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.assistant-avatar {
    background: var(--gradient-cyan);
    color: white;
}

.user-avatar {
    background: #334155;
    color: white;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    position: relative;
    font-size: 0.92rem;
    line-height: 1.55;
}

.assistant-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.user-bubble {
    background: var(--gradient-cyan);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.message-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyan-glow);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.message-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.user-bubble .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 14px 20px;
    background: var(--bg-surface-glass);
    border-top: 1px solid var(--border-subtle);
}

.chat-input-pill {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 18px;
    gap: 10px;
    transition: all var(--transition-smooth);
}

.chat-input-pill:focus-within {
    border-color: var(--cyan-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.chat-textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
}

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

.chat-addon-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.chat-addon-icon-btn:hover {
    color: var(--cyan-glow);
    background: rgba(6, 182, 212, 0.15);
}

.chat-addon-icon-btn.recording {
    color: var(--danger-accent);
    background: rgba(244, 63, 94, 0.2);
    animation: pulseRecord 1.2s infinite;
}

@keyframes pulseRecord {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.send-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan-primary);
    color: #042f2e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.send-circle-btn:hover {
    background: var(--cyan-glow);
    transform: scale(1.05);
}

/* Chat Quick Topic Bar */
.chat-quick-topic-bar {
    padding: 8px 4px 2px 4px;
    overflow-x: auto;
}

.chat-quick-pills-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.chat-mini-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.chat-mini-pill:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan-primary);
    color: white;
    transform: translateY(-1px);
}

.input-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px 0 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ==========================================================================
   VIEW 3: FACE & HAIR SCAN (CAMERA & VISION)
   ========================================================================== */

.scan-view-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-back-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scan-header-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.scan-header-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Viewfinder Box */
.scanner-viewport-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    height: 380px;
    background: #020617;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

#cameraStream,
#capturedPhotoPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Crosshairs Frame */
.scanner-target-frame {
    position: absolute;
    width: 70%;
    height: 75%;
    pointer-events: none;
}

.target-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--cyan-glow);
    border-style: solid;
}

.target-corner.top-left     { top: 0; left: 0; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.target-corner.top-right    { top: 0; right: 0; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.target-corner.bottom-left  { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.target-corner.bottom-right { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

.scanner-laser-beam {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--cyan-glow);
    box-shadow: 0 0 12px var(--cyan-glow);
    animation: scanLaser 2.2s infinite ease-in-out;
}

.camera-fallback-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.camera-fallback-msg i {
    font-size: 2rem;
    color: var(--cyan-primary);
}

/* Processing Overlay */
.scan-processing-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(6, 11, 23, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--cyan-glow);
    border-radius: 50%;
    animation: spinRing 0.9s linear infinite;
}

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

.scan-processing-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.scan-processing-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 260px;
}

/* Scan Controls */
.scan-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
}

.btn-scan-upload,
.btn-scan-action {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
}

.btn-scan-upload:hover,
.btn-scan-action:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--cyan-primary);
}

.btn-shutter-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.shutter-inner-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    transition: transform 0.15s ease;
}

.btn-shutter-circle:active .shutter-inner-dot {
    transform: scale(0.9);
}

/* Results Section */
.scan-results-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 540px;
    margin: 16px auto 0 auto;
    width: 100%;
}

.results-tabs-header {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.results-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-smooth);
}

.results-tab-btn.active {
    background: var(--gradient-cyan);
    color: white;
}

.result-tab-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.result-tab-pane.active {
    display: flex;
}

.observation-hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.observation-type-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.icon-skin { background: rgba(6, 182, 212, 0.15); color: var(--cyan-glow); }
.icon-hair { background: rgba(139, 92, 246, 0.15); color: var(--purple-accent); }

.observation-type-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.observation-type-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.observations-list-card,
.care-recommendations-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.observations-list-card h5,
.care-recommendations-card h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.observations-list-card ul,
.care-recommendations-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.observations-list-card li,
.care-recommendations-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.disclaimer-footnote {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   VIEW 4: PERSONALIZED ROUTINE
   ========================================================================== */

.routine-toggle-tabs {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    padding: 3px;
    gap: 4px;
}

.routine-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.routine-tab.active {
    background: var(--cyan-primary);
    color: #042f2e;
}

.routine-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-sun      { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-moon     { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.icon-calendar { background: rgba(6, 182, 212, 0.15); color: var(--cyan-glow); }

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.routine-action-card {
    margin-top: 10px;
}

/* ==========================================================================
   VIEW 5: PROFILE & HEALTH SCORE
   ========================================================================== */

.profile-hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large img,
.profile-avatar-large .profile-avatar-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan-primary);
}

.profile-avatar-large .profile-avatar-icon {
    background: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cyan-glow);
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-hero-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-edit-name-inline {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--cyan-glow);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-smooth);
}

.btn-edit-name-inline:hover {
    background: var(--cyan-primary);
    color: #042f2e;
}

.profile-badge-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Health Score Radial Card */
.health-score-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-radial-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.score-svg-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.score-ring-progress {
    fill: none;
    stroke: var(--emerald-accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    transition: stroke-dashoffset 1s ease;
}

.score-radial-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.score-big-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-sub-denom {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.score-verdict-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-accent);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

.score-card-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.score-card-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Menu Items List */
.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-list-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.menu-list-item:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--cyan-primary);
    transform: translateX(2px);
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-cyan   { background: rgba(6, 182, 212, 0.15); color: var(--cyan-glow); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple-accent); }
.icon-emerald{ background: rgba(16, 185, 129, 0.15); color: var(--emerald-accent); }
.icon-orange { background: rgba(245, 158, 11, 0.15); color: var(--warning-accent); }

.item-label {
    flex: 1;
}

.item-label h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-label p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.item-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 12px 10px 12px;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
}

.bottom-tab-btn i {
    font-size: 1.15rem;
}

.bottom-tab-btn.active {
    color: var(--cyan-glow);
}

/* Elevated Center Scan Button on Mobile */
.bottom-tab-btn.scan-center-btn {
    margin-top: -24px;
}

.center-btn-bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45);
    border: 3px solid var(--bg-darkest);
    transition: transform var(--transition-smooth);
}

.bottom-tab-btn.scan-center-btn:active .center-btn-bubble {
    transform: scale(0.92);
}

/* ==========================================================================
   MODALS (REPORT & API KEY)
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 11, 23, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: fadeInModal 0.2s ease forwards;
}

.modal-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card.modal-large {
    max-width: 620px;
}

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

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--danger-accent);
}

.modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
}

/* Common Form Elements in Modal */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-select,
.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-darkest);
    color: white;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.form-select:focus,
.form-input:focus {
    border-color: var(--cyan-primary);
}

.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrap .form-input {
    padding-right: 40px;
}

.btn-toggle-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-alert {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.modal-alert.success { background: rgba(16, 185, 129, 0.15); color: var(--emerald-accent); }
.modal-alert.error   { background: rgba(244, 63, 94, 0.15); color: var(--danger-accent); }

/* Report Printable Card Styles */
.report-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.report-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.report-user-summary {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.84rem;
}

.report-section-box {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-section-box h5 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-disclaimer-box {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-left: 2px solid var(--warning-accent);
    padding-left: 8px;
}

/* Generic Action Buttons */
.action-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-smooth);
}

.action-btn.primary,
.btn-gradient-cyan {
    background: var(--gradient-cyan);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-smooth);
}

.action-btn.primary:hover,
.btn-gradient-cyan:hover {
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.action-btn.secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.full-width {
    width: 100%;
    padding: 12px;
}

/* Utility Colors */
.text-cyan    { color: var(--cyan-glow); }
.text-success { color: var(--emerald-accent); }
.text-purple  { color: var(--purple-accent); }
.text-emerald { color: var(--emerald-accent); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET / DESKTOP)
   ========================================================================== */

@media (max-width: 900px) {
    .desktop-sidebar-nav {
        display: none;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    .top-nav-bar {
        padding: 12px 18px;
    }
    .view-content-scroll {
        padding: 16px 16px 80px 16px;
    }
    .scan-hero-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 16px;
    }
    .quick-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .user-greeting-badge,
    .health-score-pill {
        display: none;
    }
    .chat-history-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.5);
    }
    .chat-history-sidebar.open {
        transform: translateX(0);
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    #printableReportArea, #printableReportArea * {
        visibility: visible;
    }
    #printableReportArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: black !important;
        background: white !important;
    }
}
