/* Base */
:root {
    /* Modern neutral color palette */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Brand colors (reduced usage) */
    --brand-primary: #ED1C24;
    --brand-secondary: #6366f1;
    --brand-accent: #10b981;

    /* Simple card design variables */
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-radius: 12px;

    /* Background colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;

    /* Text colors */
    --text-primary: var(--neutral-800);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-500);
}

/* Dark mode variables */
.dark {
    --neutral-50: #0f1419;
    --neutral-100: #1c2128;
    --neutral-200: #30363d;
    --neutral-300: #484f58;
    --neutral-400: #656d76;
    --neutral-500: #8b949e;
    --neutral-600: #b1bac4;
    --neutral-700: #c9d1d9;
    --neutral-800: #e6edf3;
    --neutral-900: #f0f6fc;

    /* Dark mode card variables */
    --card-bg: #21262d;
    --card-border: #30363d;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.3);

    /* Dark mode backgrounds */
    --bg-primary: #0d1117;
    --bg-secondary: #21262d;
    --bg-tertiary: #30363d;

    /* Dark mode text */
    --text-primary: #e6edf3;
    --text-secondary: #c9d1d9;
    --text-tertiary: #8b949e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Simple Modern Card Design */
.simple-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.simple-card:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--card-shadow-hover);
}

/* Modern input styles */
.modern-input {
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.modern-input:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.modern-input::placeholder {
    color: var(--text-tertiary);
}

/* Modern button styles */
.modern-btn-primary {
    background: var(--brand-secondary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-btn-primary:hover {
    background: #5856f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.modern-btn-secondary {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    color: var(--neutral-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-btn-secondary:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-50);
}

/* Markdown Report Styles */
.markdown-body h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ED1C24;
}

.markdown-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-body p {
    margin-bottom: 0.5rem;
}

.markdown-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-body ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-body li {
    margin-bottom: 0.25rem;
    display: list-item;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}

.markdown-body th {
    background: #fafafa;
    font-weight: 600;
}

/* Chat Styles */
.chat-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Enhanced Chat Container for Better Readability */
.main-content {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
}

/* Responsive chat container widths */
@media (min-width: 768px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

@media (min-width: 1280px) {
    .main-content {
        max-width: 1600px;
        padding: 0 4rem;
    }
}

/* Collapsible Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 14rem; /* w-56 equivalent */
    background: var(--bg-secondary);
    z-index: 30;
    border-right: 1px solid var(--card-border);
    transition: transform 0.3s ease;
    padding-top: 5rem; /* Account for header height */
    box-shadow: var(--card-shadow);
}

.sidebar.collapsed {
    transform: translateX(-14rem);
}

/* Main content adjustment for sidebar */
.main-layout {
    margin-left: 14rem; /* w-56 equivalent */
    transition: margin-left 0.3s ease;
    width: calc(100vw - 14rem);
}

.sidebar.collapsed ~ .main-layout {
    margin-left: 0;
    width: 100vw;
}

/* Reddit vertical line when collapsed - goes through button center */
.reddit-vertical-line {
    position: fixed !important;
    left: 24px !important; /* 동그라미 정중앙: 0.5rem(8px) + 1rem(16px) = 24px */
    top: 5.3rem !important; /* 헤더 아래 경계선 */
    bottom: 2.8rem !important; /* 푸터 위 경계선 */
    width: 1px !important;
    background-color: #e5e7eb !important; /* 라이트 모드: 밝은 그레이 */
    z-index: 1000 !important; /* 버튼보다 낮게 */
    pointer-events: none !important;
    display: block !important;
    opacity: 0.8 !important; /* 라이트 모드에서 약간 더 진하게 */
}

/* 다크 모드에서 세로줄 색상 */
.dark .reddit-vertical-line {
    background-color: #374151 !important; /* 다크 모드: 어두운 그레이 */
    opacity: 0.6 !important; /* 다크 모드에서는 약간 투명하게 */
}

/* Desktop Reddit-style circular button */
.reddit-desktop-btn {
    width: 2rem;
    height: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.reddit-desktop-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db;
}

.reddit-desktop-btn:focus {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.reddit-desktop-btn:focus-visible {
    outline: none !important;
}

/* Dark mode for reddit button */
.reddit-desktop-btn.dark-mode {
    background: #21262d;
    border: 1px solid #30363d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.reddit-desktop-btn.dark-mode:hover {
    background: #30363d !important;
    border-color: #4b5563;
}

.reddit-desktop-btn .hamburger-icon {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2;
    color: #374151;
}

.reddit-desktop-btn.dark-mode .hamburger-icon {
    color: #c9d1d9;
}

/* Mobile standard rectangular button */
.mobile-standard-btn {
    border: none;
    outline: none;
}

.mobile-standard-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mobile-standard-btn:focus-visible {
    outline: none !important;
}

/* Mobile sidebar overlay */
@media (max-width: 768px) {
    .sidebar {
        width: 16rem;
        background: var(--bg-secondary);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 40; /* Higher z-index for mobile */
    }

    .sidebar.collapsed {
        transform: translateX(-16rem);
    }

    .main-layout {
        margin-left: 0;
        width: 100vw;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 35; /* Between header and sidebar */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

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

    /* Ensure header button is always accessible */
    header {
        z-index: 50 !important;
    }
}

/* Dark mode improvements for markdown content */
.dark .markdown-body h2,
.dark .chat-markdown h1,
.dark .chat-markdown h2,
.dark .chat-markdown h3 {
    color: var(--text-primary);
}

.dark .markdown-body h2 {
    color: var(--brand-secondary);
}

.dark .chat-markdown pre {
    background: var(--neutral-800);
    color: var(--neutral-200);
}

.dark .chat-markdown code {
    background: var(--neutral-700);
    color: var(--neutral-200);
}

.dark .chat-markdown blockquote {
    border-left-color: var(--neutral-600);
    color: var(--text-secondary);
}

.dark .chat-markdown th {
    background: var(--neutral-700);
    color: var(--text-primary) !important;
}

/* Dark mode table improvements */
.dark .markdown-body th {
    background: var(--neutral-700) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.dark .markdown-body td {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--neutral-600) !important;
}

.dark .markdown-body table {
    border-color: var(--neutral-600) !important;
}

.dark .chat-markdown td {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--neutral-600) !important;
}

/* Dark mode link improvements */
.dark a,
.dark .markdown-body a,
.dark .chat-markdown a {
    color: #60a5fa !important; /* Light blue */
    text-decoration: underline;
}

.dark a:hover,
.dark .markdown-body a:hover,
.dark .chat-markdown a:hover {
    color: #93c5fd !important; /* Lighter blue on hover */
    text-decoration: underline;
}

.dark a:visited,
.dark .markdown-body a:visited,
.dark .chat-markdown a:visited {
    color: #c084fc !important; /* Light purple for visited links */
}

/* Stronger table styling for dark mode */
.dark table,
.dark .markdown-body table,
.dark .chat-markdown table {
    background: #2a2a2a !important; /* Darker table background */
    border: 1px solid #444444 !important; /* Darker border */
}

.dark table th,
.dark .markdown-body th,
.dark .chat-markdown th,
.dark table thead th,
.dark .markdown-body thead th,
.dark .chat-markdown thead th {
    background: #1a1a1a !important; /* Much darker background */
    color: #ffffff !important; /* Pure white text */
    font-weight: 700 !important;
    border: 1px solid var(--neutral-600) !important;
    padding: 8px !important;
    text-shadow: none !important;
}

.dark table td,
.dark .markdown-body td,
.dark .chat-markdown td,
.dark table tbody td,
.dark .markdown-body tbody td,
.dark .chat-markdown tbody td {
    background: #2a2a2a !important; /* Darker cell background */
    color: #e5e5e5 !important; /* Light gray text */
    border: 1px solid #444444 !important; /* Darker border */
    padding: 8px !important;
}

/* Force override any inline styles */
.dark table * {
    color: inherit !important;
}

/* Dark mode button improvements */
.dark .modern-btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--neutral-600);
    color: var(--text-primary);
}

.dark .modern-btn-secondary:hover {
    border-color: var(--neutral-500);
    background: var(--neutral-600);
}

/* Dark mode header and footer improvements */
.dark header {
    background: var(--bg-secondary) !important;
    border-color: var(--card-border) !important;
    color: var(--text-primary) !important;
}

.dark footer {
    background: var(--bg-secondary) !important;
    border-color: var(--card-border) !important;
}

/* Dark mode form improvements */
.dark input[type="text"],
.dark select {
    background: var(--bg-tertiary) !important;
    border-color: var(--neutral-400) !important;
    color: var(--text-primary) !important;
}

.dark input[type="text"]:focus,
.dark select:focus {
    border-color: var(--neutral-500) !important;
    background: var(--bg-secondary) !important;
}

.dark input[type="checkbox"] {
    background: var(--bg-tertiary) !important;
    border-color: var(--neutral-400) !important;
}

.dark input[type="checkbox"]:checked {
    background: var(--neutral-600) !important;
}

/* Button consistency in dark mode */
.dark .bg-slate-600 {
    background-color: #475569 !important; /* Blue-gray slate */
}

.dark .bg-slate-600:hover,
.dark .hover\\:bg-slate-700:hover {
    background-color: #334155 !important; /* Darker blue-gray on hover */
}

/* Dark mode sidebar improvements */
.dark .sidebar {
    background: var(--bg-secondary) !important;
    border-color: var(--card-border) !important;
    color: var(--text-primary) !important;
}

.dark .sidebar h3 {
    color: var(--text-secondary) !important;
}

.dark .sidebar button {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.dark .sidebar button:hover {
    background: var(--bg-tertiary) !important;
    color: white !important;
}

.dark .sidebar button:disabled {
    color: var(--text-tertiary) !important;
    opacity: 0.6;
}

.dark .sidebar .group:hover {
    background: var(--bg-tertiary) !important;
}

/* Specific styling for active button in both modes */
.sidebar button[class*="bg-neutral-700"] {
    background: #404040 !important; /* Soft gray */
    color: white !important;
    font-weight: 600;
    border-left-color: #737373 !important; /* Softer border */
}

.sidebar button[class*="text-white"] {
    color: white !important;
}

/* Dark mode specific adjustments */
.dark .sidebar button[class*="bg-neutral-700"] {
    background: #4b5563 !important; /* Slightly lighter gray in dark mode */
    color: white !important;
    font-weight: 600;
    border-left-color: #9ca3af !important; /* Lighter border in dark mode */
}

/* Better text contrast for sidebar items in dark mode */
.dark .sidebar p,
.dark .sidebar span {
    color: var(--text-primary) !important;
}

.dark .sidebar .text-xs {
    color: var(--text-secondary) !important;
}

/* History section styling in dark mode */
.dark .sidebar .text-gray-700 {
    color: var(--text-primary) !important;
}

.dark .sidebar .text-gray-400 {
    color: var(--text-secondary) !important;
}

/* Bookmark styling */
.text-yellow-500 {
    color: #eab308 !important;
}

.text-yellow-600 {
    color: #ca8a04 !important;
}

.hover\\:text-yellow-500:hover {
    color: #eab308 !important;
}

.hover\\:text-yellow-600:hover {
    color: #ca8a04 !important;
}

/* Mode tooltip styling for dark mode */
.dark .absolute.top-8.left-0.z-50 {
    background: var(--bg-secondary) !important;
    border-color: var(--card-border) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.dark .absolute.top-8.left-0.z-50 h4 {
    color: var(--text-primary) !important;
}

.dark .absolute.top-8.left-0.z-50 p {
    color: var(--text-secondary) !important;
}

.dark .absolute.top-8.left-0.z-50 .bg-blue-50 {
    background: #1e3a8a !important;
    border-color: #3b82f6 !important;
}

.dark .absolute.top-8.left-0.z-50 .bg-green-50 {
    background: #166534 !important;
    border-color: #10b981 !important;
}

.dark .absolute.top-8.left-0.z-50 .bg-gray-50 {
    background: var(--bg-tertiary) !important;
    border-color: var(--card-border) !important;
}

.dark .absolute.top-8.left-0.z-50 .text-gray-800 {
    color: var(--text-primary) !important;
}

.dark .absolute.top-8.left-0.z-50 .text-gray-600 {
    color: var(--text-secondary) !important;
}

.dark .absolute.top-8.left-0.z-50 .text-gray-500 {
    color: var(--text-tertiary) !important;
}

/* More specific tooltip styling */
.dark div[class*="absolute"][class*="top-8"][class*="bg-white"] {
    background: #1f2937 !important; /* Dark gray background */
    border: 1px solid #374151 !important; /* Dark border */
    color: #f9fafb !important; /* Light text */
}

.dark div[class*="absolute"][class*="top-8"] div[class*="bg-blue-50"] {
    background: rgba(59, 130, 246, 0.2) !important; /* Blue with transparency */
    border-color: #3b82f6 !important;
}

.dark div[class*="absolute"][class*="top-8"] div[class*="bg-green-50"] {
    background: rgba(16, 185, 129, 0.2) !important; /* Green with transparency */
    border-color: #10b981 !important;
}

.dark div[class*="absolute"][class*="top-8"] div[class*="bg-gray-50"] {
    background: rgba(75, 85, 99, 0.3) !important; /* Gray with transparency */
    border-color: #6b7280 !important;
}

/* Force text colors in tooltip */
.dark div[class*="absolute"][class*="top-8"] h4,
.dark div[class*="absolute"][class*="top-8"] p,
.dark div[class*="absolute"][class*="top-8"] span,
.dark div[class*="absolute"][class*="top-8"] li {
    color: #f9fafb !important;
}

.dark div[class*="absolute"][class*="top-8"] .text-xs {
    color: #d1d5db !important;
}

/* Hide any other hamburger buttons that might exist */
.hamburger-button:not(.reddit-style) {
    display: none !important;
}

/* Hamburger button styles */
.light-hamburger:hover {
    background: #f3f4f6 !important;
    transform: scale(1.05);
}

.dark-hamburger {
    background: var(--bg-secondary) !important;
    border-color: var(--card-border) !important;
}

.dark-hamburger:hover {
    background: var(--bg-tertiary) !important;
    transform: scale(1.05);
}

/* Collapsed sidebar visual indicator line */
.collapsed-line {
    position: fixed;
    left: 0;
    top: 5rem;
    bottom: 0;
    width: 1px;
    background: #30363d;
    z-index: 999;
    display: none;
}

/* Show line when sidebar is collapsed */
.sidebar.collapsed ~ .collapsed-line {
    display: block;
}

/* Hamburger button positioning */
.hamburger-button {
    position: fixed;
    top: 7rem;
    z-index: 9999;
    width: 2rem;
    height: 2rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    left: 13rem; /* Default position when sidebar is open */
}

/* Move hamburger when sidebar is collapsed */
.sidebar.collapsed ~ .hamburger-button {
    left: -1rem;
}

/* Dark mode text color overrides */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6,
.dark p, .dark span, .dark div, .dark label {
    color: var(--text-primary);
}

.dark .text-neutral-500,
.dark .text-gray-500 {
    color: var(--text-secondary) !important;
}

.dark .text-neutral-600,
.dark .text-gray-600 {
    color: var(--text-secondary) !important;
}

.dark .text-neutral-700,
.dark .text-gray-700 {
    color: var(--text-primary) !important;
}

.dark .text-neutral-400,
.dark .text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* Footer positioning */
.footer-bottom {
    position: relative;
    margin-top: auto;
}

/* Main layout as flexbox to push footer to bottom */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 5rem); /* Account for header height */
}

/* Content area should grow to push footer down */
.content-area {
    flex-grow: 1;
}

/* Header always dark style for consistency */
header {
    background: #21262d !important; /* Same as dark mode card background */
    border-bottom: 1px solid #30363d !important; /* Same as dark mode border */
    color: white !important;
}

/* Force header text colors */
header h1 {
    color: #ED1C24 !important; /* BTS red */
}

header p {
    color: #a3a3a3 !important; /* neutral-400 */
}

header .text-white,
header button,
header div {
    color: white !important;
}

/* Header button styling */
header button:hover {
    background-color: #30363d !important; /* Same as dark mode tertiary */
}

/* User avatar in header */
header .bg-neutral-700 {
    background-color: #484f58 !important; /* Same as dark mode neutral-300 */
    border-color: #656d76 !important; /* Same as dark mode neutral-400 */
}

.chat-message {
    animation: fadeIn 0.3s ease;
}

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

/* Chat Markdown Styles */
.chat-markdown {
    font-size: 0.9rem;
    line-height: 1.7;
}

.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.chat-markdown h1 {
    font-size: 1.1rem;
}

.chat-markdown h2 {
    font-size: 1rem;
}

.chat-markdown h3 {
    font-size: 0.95rem;
}

.chat-markdown p {
    margin-bottom: 0.75rem;
}

.chat-markdown ul,
.chat-markdown ol {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.chat-markdown ul {
    list-style-type: disc;
}

.chat-markdown ol {
    list-style-type: decimal;
}

.chat-markdown li {
    margin-bottom: 0.35rem;
    display: list-item;
}

.chat-markdown strong {
    font-weight: 600;
    color: #1f2937;
}

.chat-markdown code {
    background: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

.chat-markdown pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.chat-markdown pre code {
    background: none;
    padding: 0;
}

.chat-markdown blockquote {
    border-left: 3px solid #e5e7eb;
    padding-left: 1rem;
    color: #6b7280;
    margin: 0.75rem 0;
}

.chat-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.chat-markdown th,
.chat-markdown td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}

.chat-markdown th {
    background: #f9fafb;
    font-weight: 600;
}

/* Follow-up Questions Styles */
.followup-section {
    margin: 1rem 0;
}

.followup-question {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.followup-question:hover {
    border-color: #60a5fa;
    background-color: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.followup-question:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Error message styling */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .error-message {
    background-color: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.error-message code {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
}

.dark .error-message code {
    background-color: #7f1d1d;
    color: #fed7d7;
}

/* Success message styling */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .success-message {
    background-color: #052e16;
    border-color: #166534;
    color: #86efac;
}

/* Warning message styling */
.warning-message {
    background-color: #fefce8;
    border: 1px solid #fed7aa;
    color: #a16207;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .warning-message {
    background-color: #451a03;
    border-color: #a16207;
    color: #fcd34d;
}
