Spaces:
Paused
Paused
| /* General Body and Font Styles */ | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| min-height: 100vh; | |
| overflow: hidden; /* Prevent body scrollbars, scrolling happens in containers */ | |
| } | |
| /* Base layout handled by Tailwind, but we ensure the container is the full height */ | |
| #main-container { | |
| height: 100vh; | |
| } | |
| /* Message Bubble Styles for a cleaner chat look */ | |
| .message-user, .message-assistant { | |
| box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); | |
| } | |
| .message-user .mx-auto { | |
| background-color: rgba(255, 255, 255, 0.9); | |
| } | |
| .message-assistant .mx-auto { | |
| background-color: rgba(240, 245, 255, 0.85); /* A slightly blue tint for assistant */ | |
| } | |
| /* Improved Markdown Formatting for Readability */ | |
| .markdown-container h1, .markdown-container h2, .markdown-container h3 { | |
| font-weight: 600; | |
| margin-top: 1.5rem; | |
| margin-bottom: 0.75rem; | |
| font-size: 1.25rem; | |
| } | |
| .markdown-container ul { | |
| list-style-type: disc; | |
| padding-left: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .markdown-container ol { | |
| list-style-type: decimal; | |
| padding-left: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .markdown-container p { | |
| margin-bottom: 0.75rem; | |
| line-height: 1.6; | |
| } | |
| .markdown-container a { | |
| color: #2563eb; /* Blue-600 */ | |
| text-decoration: underline; | |
| } | |
| .markdown-container code { | |
| background-color: rgba(229, 231, 235, 0.7); /* Gray-200 with transparency */ | |
| padding: 0.1rem 0.3rem; | |
| border-radius: 4px; | |
| font-family: monospace; | |
| } | |
| .markdown-container pre { | |
| background-color: #f3f4f6; /* Gray-100 */ | |
| padding: 1rem; | |
| border-radius: 8px; | |
| overflow-x: auto; | |
| font-size: 0.875rem; | |
| } | |
| .markdown-container hr { | |
| margin: 1.5rem 0; | |
| border-color: #e5e7eb; /* Gray-200 */ | |
| } | |
| /* --- Responsive Sidebar Logic --- */ | |
| #main-content { | |
| flex: 1; | |
| transition: margin-left 0.3s ease-in-out; | |
| } | |
| /* Mobile & Tablet View (< 769px) */ | |
| /* Push main content on mobile when sidebar is open */ | |
| @media (max-width: 768px) { | |
| .sidebar.open + #main-content { | |
| margin-left: 256px; /* same as sidebar width */ | |
| } | |
| #main-content { | |
| transition: margin-left 0.3s ease-in-out; | |
| } | |
| } | |
| /* Desktop View (> 768px) */ | |
| @media (min-width: 769px) { | |
| .sidebar { | |
| width: 256px; /* Always open and fixed width */ | |
| } | |
| #menu-button { | |
| display: none; /* Hide the menu button */ | |
| } | |
| } | |
| .sidebar { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| height: 100%; | |
| width: 256px; /* Tailwind w-64 */ | |
| background-color: rgba(255, 255, 255, 0.6); | |
| backdrop-filter: blur(1rem); | |
| border-right: 1px solid rgba(147, 197, 253, 0.5); /* border-blue-100/50 */ | |
| z-index: 50; | |
| transform: translateX(-100%); | |
| transition: transform 0.3s ease-in-out; | |
| overflow-y: auto; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| @media (min-width: 769px) { | |
| .sidebar { | |
| transform: none ; | |
| position: relative; | |
| z-index: 0; | |
| } | |
| #sidebar-backdrop { | |
| display: none ; | |
| } | |
| #menu-button { | |
| display: none; | |
| } | |
| } | |