/* SuperLens - Custom Styles with Theme Support */

/* ChatGPT Layout Styles */
.chatgpt-layout {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1030;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
}

.sidebar-actions {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.new-chat-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
}

/* Conversation History */
.conversation-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.conversation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conversation-item {
    margin-bottom: 0.5rem;
}

.conversation-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.conversation-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.conversation-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Navigation Menu */
.sidebar-nav {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 0.5rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-menu-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.sidebar-submenu-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.current-data-source {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: var(--bg-tertiary);
}

.data-source-indicator {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.data-source-icon {
    margin-right: 0.5rem;
    color: var(--bs-info);
}

.theme-switcher, .user-menu {
    margin-bottom: 0.5rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile Navbar - Only visible on small screens */
.mobile-navbar {
    display: none;
}

/* Footer Styles for ChatGPT Layout */
.chatgpt-footer {
    margin-left: 260px;
    width: calc(100% - 260px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 85%;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-navbar {
        display: flex;
    }
    
    .chatgpt-footer {
        margin-left: 0;
        width: 100%;
    }
}

/* Theme Variables */
:root {
    /* Common Variables - used across all themes */
    --transition-speed: 0.3s;
    
    /* Dark Theme Variables (Default) */
    --bg-primary: #212529;
    --bg-secondary: #2c3034;
    --bg-tertiary: #343a40;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --border-color: #495057;
    --chart-grid-color: rgba(255, 255, 255, 0.1);
    --chart-text-color: rgba(255, 255, 255, 0.8);
    --card-bg: #2c3034;
    --highlight-bg: rgba(255, 255, 255, 0.05);
}

/* Light Theme Variables */
[data-bs-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --bg-tertiary: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #ced4da;
    --chart-grid-color: rgba(0, 0, 0, 0.1);
    --chart-text-color: rgba(0, 0, 0, 0.8);
    --card-bg: #ffffff;
    --highlight-bg: rgba(0, 0, 0, 0.03);
}

/* AMOLED Theme Variables */
[data-bs-theme="amoled"] {
    --bg-primary: #000000;
    --bg-secondary: #121212;
    --bg-tertiary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: #333333;
    --chart-grid-color: rgba(255, 255, 255, 0.05);
    --chart-text-color: rgba(255, 255, 255, 0.9);
    --card-bg: #121212;
    --highlight-bg: rgba(255, 255, 255, 0.03);
}

/* Typography Enhancements */
body {
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background: var(--bs-primary);
    border-radius: 2px;
}

/* Non-centered page titles keep their original styling */
.page-title:not(.text-center):after {
    left: 0;
    transform: none;
}

/* Card Enhancements */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    font-weight: 600;
}

/* Query Form */
.query-form {
    padding: 2rem;
    margin-bottom: 2rem;
}

.query-input-group {
    position: relative;
    display: flex;
}

.query-input {
    height: 3.5rem;
    padding-right: 9rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    flex-grow: 1;
}

.query-mic-btn {
    position: absolute;
    right: 6.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.query-mic-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

.query-submit {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 6rem;
    z-index: 2;
}

/* Example Queries */
.example-queries {
    margin-bottom: 1.5rem;
}

.example-query {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

/* Results Formatting */
.results-container {
    margin-top: 2rem;
}

/* Query Text Styles */
.query-text {
    font-size: 1rem;
    font-style: normal;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sql-query {
    font-family: 'Courier New', monospace;
    padding: 1rem;
    border-radius: 0.4rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.sql-keyword {
    color: #007bff;
    font-weight: bold;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Insights Cards */
.insight-card {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.insight-card .card-body {
    padding: 0.75rem;
}

/* Table Enhancements */
.results-table {
    width: 100%;
}

.results-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.results-table td {
    max-width: 20rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Visualization Container */
.visualization-container {
    width: 100%;
    min-height: 400px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Chart Wrapper for Interactive Storytelling */
.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 1rem;
}

/* Data Story Container */
.data-story-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    max-height: 100%;
    margin-top: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease-in-out;
}

/* Story Cards */
.story-navigator {
    padding: 0.5rem;
}

.story-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.story-card {
    background-color: var(--highlight-bg);
    border-radius: 0.4rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.story-card:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(5px);
}

.story-card.active {
    border-left: 3px solid var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

.story-card h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.story-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Story Content Animation */
.story-content {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.8s;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

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

.animate__zoomIn {
    animation-name: zoomIn;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

/* Loading Indicators with Industry-Specific Themes */
.loading-indicator {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Base loading container */
.domain-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Entertainment loader (Film reel) */
.entertainment-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.entertainment-loader:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 8px solid rgba(255, 107, 107, 0.2); /* Light version of #ff6b6b */
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: entertainment-spin 1.5s linear infinite;
}

.entertainment-loader:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 6px solid transparent;
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: entertainment-spin 1s linear infinite reverse;
}

@keyframes entertainment-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Sports loader (Bouncing ball) */
.sports-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.sports-loader:before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4ecdc4;
    left: 10px;
    animation: sports-bounce 1.2s infinite;
}

.sports-loader:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(78, 205, 196, 0.3);
    bottom: 0;
    left: 0;
    border-radius: 50%;
    animation: sports-shadow 1.2s infinite;
}

@keyframes sports-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes sports-shadow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.1;
    }
}

/* Gaming loader (Pixel blocks) */
.gaming-loader {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.gaming-loader-cube {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #a66eff;
    animation: gaming-cube-anim 1.5s infinite ease-in-out;
}

.gaming-loader-cube:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.gaming-loader-cube:nth-child(2) {
    top: 0;
    left: 30px;
    animation-delay: 0.1s;
}

.gaming-loader-cube:nth-child(3) {
    top: 0;
    left: 60px;
    animation-delay: 0.2s;
}

.gaming-loader-cube:nth-child(4) {
    top: 30px;
    left: 0;
    animation-delay: 0.3s;
}

.gaming-loader-cube:nth-child(5) {
    top: 30px;
    left: 30px;
    animation-delay: 0.4s;
}

.gaming-loader-cube:nth-child(6) {
    top: 30px;
    left: 60px;
    animation-delay: 0.5s;
}

.gaming-loader-cube:nth-child(7) {
    top: 60px;
    left: 0;
    animation-delay: 0.6s;
}

.gaming-loader-cube:nth-child(8) {
    top: 60px;
    left: 30px;
    animation-delay: 0.7s;
}

.gaming-loader-cube:nth-child(9) {
    top: 60px;
    left: 60px;
    animation-delay: 0.8s;
}

@keyframes gaming-cube-anim {
    0%, 100% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateZ(20px) scale(0.8);
        opacity: 0.8;
    }
}

/* Default loader (fallback) */
.default-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(150, 150, 150, 0.2);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: default-spin 1s infinite linear;
}

@keyframes default-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loader text */
.loader-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--bs-light);
    opacity: 0.8;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Domain-specific styling */
.domain-entertainment {
    border-left: 4px solid #ff6b6b;
}

.domain-sports {
    border-left: 4px solid #4ecdc4;
}

.domain-gaming {
    border-left: 4px solid #a66eff;
}

/* Voice Command Interface */
#voice-command-toggle {
    transition: all 0.3s ease;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#voice-command-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(var(--bs-info-rgb), 0.5);
}

#voice-command-toggle.active {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    animation: pulse-recording 2s infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(var(--bs-danger-rgb), 0);
    }
}

#voice-command-status-panel {
    max-width: 350px;
    transition: all 0.3s ease;
}

.voice-status-badge {
    width: 10px;
    height: 10px;
}

.message-bubble.voice-command {
    border-left: 3px solid var(--bs-info);
}

/* Voice command help modal */
.voice-command-help-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.voice-command-help-item:hover {
    background-color: rgba(var(--bs-info-rgb), 0.1);
}

.voice-command-example {
    display: inline-block;
    background-color: rgba(var(--bs-info-rgb), 0.2);
    color: var(--bs-info);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    font-family: monospace;
}

/* Accessibility focus indicators */
#voice-command-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-info-rgb), 0.5);
}

/* Enhanced Navigation Styling */
.nav-item.active .nav-link {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* Dark menu styles (original) */
.dropdown-menu-dark, .navbar-dark .dropdown-menu {
    background-color: #343a40;
    color: #f8f9fa;
}

.dropdown-menu-dark .dropdown-item, .navbar-dark .dropdown-menu .dropdown-item {
    color: #f8f9fa;
}

.dropdown-menu-dark .dropdown-item:hover, .navbar-dark .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Light theme overrides for specific components */
/* Light theme overrides */
[data-bs-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --highlight-bg: rgba(13, 110, 253, 0.1);
}

[data-bs-theme="light"] .query-form {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .query-container {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .data-source-indicator {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .data-source-indicator strong {
    color: #0d6efd !important;
}

/* Default dark styles for data source indicator */
.data-source-indicator {
    background-color: #1a1a2e;
    color: white;
}

.data-source-indicator strong {
    color: white;
}

[data-bs-theme="light"] .card {
    background-color: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}

[data-bs-theme="light"] .form-control {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #ced4da;
}

[data-bs-theme="light"] .form-control:focus {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #86b7fe;
}

/* Ensure input areas properly respect theme */
[data-bs-theme="light"] #query-input {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Fix any forced dark styles */
[data-bs-theme="light"] .query-form .input-group {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: var(--bs-info);
}

/* Additional themed components */
.navbar-themed {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-bs-theme="light"] .navbar-themed {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.themed-dropdown .dropdown-item {
    color: var(--text-primary);
}

.themed-dropdown .dropdown-item:hover {
    background-color: var(--highlight-bg);
}

/* Themed components */
.themed-header {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 0.4rem;
}

.themed-container {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.themed-item {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Fix for form controls */
.form-control, .form-select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.card {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.mobile-nav .btn {
    padding: 8px 0;
    font-size: 0.7rem;
    border-radius: 0;
    border: none;
    color: var(--text-primary);
    background-color: transparent;
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.mobile-nav .btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav .btn:hover {
    background-color: var(--highlight-bg);
}

.mobile-nav .btn.active {
    color: var(--bs-info);
    background-color: var(--highlight-bg);
}

/* Data Source Badge/Dropdown */
.source-dropdown .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.source-dropdown .dropdown-menu {
    min-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .query-input {
        height: 3rem;
        font-size: 1rem;
    }
    
    .query-submit {
        width: 5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .visualization-container {
        height: 300px;
    }
    
    #voice-command-toggle {
        width: 34px;
        height: 34px;
    }
    
    #voice-command-status-panel {
        max-width: 100%;
        width: calc(100% - 2rem);
    }
    
    /* Show bottom nav on mobile */
    .mobile-nav {
        display: block;
    }
    
    /* Add bottom padding to account for the fixed bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Logo styling */
.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 4px rgba(0, 195, 255, 0.7));
    transition: all 0.3s ease;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand:hover .logo-img {
    filter: drop-shadow(0 0 6px rgba(0, 195, 255, 0.9));
    transform: scale(1.1);
}

/* Conversation Area Styles */
#conversation-area {
    max-width: 100%;
    margin: 0 auto;
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
}

.message-content {
    flex: 1;
    max-width: 85%;
}

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

.user-message .message-content {
    background-color: #007bff;
    color: white;
    border-radius: 1rem 1rem 0 1rem;
    padding: 1rem;
}

.ai-message {
    justify-content: flex-start;
}

.ai-message .message-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1rem 1rem 1rem 0;
    padding: 1rem;
}

.message-header {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.user-message .message-header {
    color: rgba(255, 255, 255, 0.8);
}

.ai-message .message-header {
    color: #6c757d;
}

.message-body {
    font-size: 1rem;
    line-height: 1.5;
}

/* Results Table Styles */
.results-table-container {
    margin: 1rem 0;
}

.results-table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* SQL Query Styles */
.sql-query-container {
    margin: 1rem 0;
}

.sql-query {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-btn {
    margin-top: 0.5rem;
}

/* Visualization Container */
.visualization-container {
    margin: 1rem 0;
    padding: 1rem;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
