/* ==========================================================================
   STUDY BUDDY - MODERN EDUCATIONAL CHATBOT STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Indigo & Violet Modern Gradient Theme */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    
    --secondary-color: #ec4899;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-cyan: #06b6d4;

    /* Light Theme Palette */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(226, 232, 240, 0.8);
    --border-focus: rgba(99, 102, 241, 0.5);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --user-bubble-bg: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    --user-bubble-text: #ffffff;
    --bot-bubble-bg: #ffffff;
    --bot-bubble-text: #1e293b;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
    --bg-main: #0b0f19;
    --bg-card: #151c2c;
    --bg-glass: rgba(21, 28, 44, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.6);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --bot-bubble-bg: #1e293b;
    --bot-bubble-text: #f1f5f9;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Subtle Gradient Glow */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(217, 70, 239, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(50px);
}

/* --------------------------------------------------------------------------
   3. APP CONTAINER LAYOUT
   -------------------------------------------------------------------------- */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
}

/* --------------------------------------------------------------------------
   4. APP HEADER
   -------------------------------------------------------------------------- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pulse-sparkle {
    position: absolute;
    top: -4px;
    right: -4px;
    color: var(--accent-amber);
    font-size: 0.75rem;
    animation: pulseSparkle 2s infinite ease-in-out;
}

@keyframes pulseSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(15deg); opacity: 0.8; }
}

.brand-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-ai {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
    letter-spacing: 0.5px;
}

.status-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    display: inline-block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    opacity: 0.95;
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--border-focus);
    color: var(--primary-color);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--border-focus);
}

.key-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-amber);
}

.key-status-dot.active {
    background: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   5. CHAT VIEWPORT & MESSAGES CONTAINER
   -------------------------------------------------------------------------- */
.chat-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.chat-viewport::-webkit-scrollbar {
    width: 6px;
}

.chat-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.chat-viewport::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

/* Welcome Banner */
.welcome-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    margin: auto 0;
    padding: 20px 0;
}

.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    max-width: 720px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}

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

.avatar-large {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px auto;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.welcome-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 24px auto;
}

.features-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill i {
    color: var(--primary-color);
}

.quick-questions-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.quick-card:hover {
    background: var(--bg-card);
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.card-icon.physics { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.card-icon.math { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.card-icon.biology { background: linear-gradient(135deg, #10b981, #059669); }
.card-icon.study { background: linear-gradient(135deg, #f59e0b, #d97706); }

.card-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.quick-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   6. ACTIVE CHAT MESSAGES & BUBBLES
   -------------------------------------------------------------------------- */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.message-row {
    display: flex;
    gap: 12px;
    max-width: 88%;
    animation: slideUp 0.3s ease-out;
}

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

.message-row.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-row.bot {
    margin-right: auto;
}

.user-avatar, .bot-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bot-avatar-small {
    background: var(--primary-gradient);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

.message-row.user .message-sender {
    text-align: right;
    margin-right: 2px;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.935rem;
    line-height: 1.65;
    position: relative;
    word-break: break-word;
}

.message-row.user .message-bubble {
    background: var(--user-bubble-bg);
    color: var(--user-bubble-text);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.message-row.bot .message-bubble {
    background: var(--bot-bubble-bg);
    color: var(--bot-bubble-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Bot Message Content Formatting (Markdown Output) */
.message-bubble p {
    margin-bottom: 10px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ul, .message-bubble ol {
    margin: 8px 0 12px 20px;
}

.message-bubble li {
    margin-bottom: 4px;
}

.message-bubble strong {
    font-weight: 700;
}

.message-bubble blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin: 10px 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.message-bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.875rem;
}

.message-bubble th, .message-bubble td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.message-bubble th {
    background: var(--primary-light);
    font-weight: 700;
}

/* Code Blocks & Syntax Highlighting */
.message-bubble code:not(pre code) {
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
}

.message-row.user .message-bubble code:not(pre code) {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.code-wrapper {
    margin: 12px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #282c34;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #21252b;
    color: #abb2bf;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    text-transform: lowercase;
}

.code-copy-btn {
    background: transparent;
    border: none;
    color: #abb2bf;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.code-copy-btn:hover {
    color: #ffffff;
}

.code-wrapper pre {
    margin: 0;
    padding: 14px;
    overflow-x: auto;
}

.code-wrapper code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Message Actions Toolbar (Copy & Speak) */
.message-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.message-row:hover .message-actions-toolbar {
    opacity: 1;
}

.btn-action-sm {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.btn-action-sm:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   7. LOADING INDICATOR
   -------------------------------------------------------------------------- */
.loading-indicator {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0 20px 0;
    animation: slideUp 0.3s ease-out;
}

.loading-indicator.hidden {
    display: none !important;
}

.loading-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bot-bubble-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: bounceDots 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.loading-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. INPUT DOCK & TEXTAREA
   -------------------------------------------------------------------------- */
.input-dock {
    padding: 16px 24px 20px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 10;
}

.input-wrapper {
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#user-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    max-height: 140px;
    min-height: 24px;
}

#user-input::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark-theme .input-actions {
    border-top-color: rgba(255, 255, 255, 0.04);
}

.keyboard-hint {
    display: flex;
    gap: 12px;
    font-size: 0.725rem;
    color: var(--text-muted);
}

kbd {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-send {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
}

.btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

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

/* --------------------------------------------------------------------------
   9. MODAL DIALOG
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

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

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.password-input-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.password-input-wrapper input:focus {
    border-color: var(--border-focus);
}

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

.info-box {
    display: flex;
    gap: 10px;
    background: var(--primary-light);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    font-size: 0.825rem;
}

.info-box i {
    color: var(--primary-color);
    margin-top: 2px;
}

.info-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

.note-text {
    font-size: 0.775rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .app-header {
        padding: 12px 16px;
    }

    .brand-text p {
        display: none;
    }

    .btn-text {
        display: none;
    }

    .chat-viewport {
        padding: 16px;
    }

    .welcome-card {
        padding: 24px 18px;
    }

    .quick-cards-grid {
        grid-template-columns: 1fr;
    }

    .message-row {
        max-width: 95%;
    }

    .input-dock {
        padding: 12px 16px;
    }

    .keyboard-hint {
        display: none;
    }
}
