:root {
    --bg-main: #ffffff;
    --bg-sidebar: #f9f9f9;
    --text-main: #0d0d0d;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --input-bg: #f4f4f4;
    --gpt-accent: #10a37f;
    --gpt-accent-hover: #0d8a6b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* App layout wrapper */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar styling - Light Mode ChatGPT style */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 12px;
    justify-content: space-between;
    flex-shrink: 0;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s, border-right 0.25s;
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.new-chat-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
}

.new-chat-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.bottom-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.bottom-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--text-muted);
}

.icon.star {
    color: var(--text-muted);
}

.bottom-item:hover .icon {
    color: var(--text-main);
}

.bottom-item:hover .star {
    color: #e0a800;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffb300;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-details strong {
    font-size: 0.82rem;
    font-weight: 600;
}

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

/* Main Workspace */
.main-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header bar */
.header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-main);
}

.header-left {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
}

.dropdown-title {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
}

.dropdown-title:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-title h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

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

.role-selector-pill {
    background-color: var(--input-bg);
    border-radius: 30px;
    padding: 3px;
    display: flex;
    gap: 2px;
}

.role-selector-pill button {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.role-selector-pill button.active {
    background-color: var(--bg-main);
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Page split panel layout */
.content-container {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    background-color: var(--bg-main);
    height: 100%;
    position: relative;
    width: 100%;
}

/* Landing Panel (Search Home view) */
.landing-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    max-width: 720px;
    padding: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.landing-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Rounded prompt input bar */
.input-container {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-bar-form {
    background-color: var(--input-bg);
    border-radius: 26px;
    padding: 10px 12px 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prompt-bar-form input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
}

.prompt-bar-form input::placeholder {
    color: #a3a3a3;
}

.prompt-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-circle {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.action-btn-circle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.voice-pill {
    background-color: rgba(0, 0, 0, 0.04);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
}

.voice-pill:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.send-btn {
    background-color: var(--text-main);
    border: none;
    outline: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-icon {
    width: 14px;
    height: 14px;
    fill: var(--bg-main);
}

.icon-small {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.input-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* Suggestions grid cards */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.suggest-card {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggest-card:hover {
    background-color: var(--bg-sidebar);
    border-color: #d1d1d1;
}

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

.suggest-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Chat Feed panel */
.chat-feed {
    width: 100%;
    max-width: 720px;
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 10px;
}

.chat-message {
    display: flex;
    gap: 16px;
    width: 100%;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-message.assistant .message-avatar {
    background-color: var(--gpt-accent);
    color: white;
}

.chat-message.user .message-avatar {
    background-color: #ffb300;
    color: white;
    order: 2;
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 3px;
    max-width: calc(100% - 48px);
}

.chat-message.user .message-text {
    background-color: var(--input-bg);
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    order: 1;
}

.chat-message.system-alert .message-text {
    border-left: 3px dashed var(--gpt-accent);
    padding-left: 14px;
    color: var(--gpt-accent);
    font-weight: 500;
}

/* Canvas/Sandbox Slide-out Data Panel */
.canvas-panel {
    width: 50%;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

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

.canvas-title h3 {
    font-size: 1rem;
    font-weight: 600;
}

.canvas-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-canvas-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.close-canvas-btn:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-main);
}

.canvas-content {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--bg-main);
    margin: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Render Tables and Data */
.report-title-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.report-title-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

.report-title-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.data-table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-main);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background-color: var(--bg-sidebar);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-sidebar);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.stat-card label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gpt-accent);
}

.api-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: rgba(16, 163, 127, 0.1);
    color: var(--gpt-accent);
    border: 1px solid rgba(16, 163, 127, 0.2);
}

.warning-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #b91c1c;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.warning-container h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.warning-container p {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 280px;
}

.badge {
    background-color: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.65rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal {
    background-color: var(--bg-main);
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

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

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

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

.hide {
    display: none !important;
}

/* Authentication & Onboarding Styling */
.login-action-btn {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-action-btn:hover {
    background-color: #2a2a2a;
}

.role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(16, 163, 127, 0.08);
    color: var(--gpt-accent);
    border: 1px solid rgba(16, 163, 127, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-modal {
    max-width: 460px;
}

.auth-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

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

.form-group input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
}

.form-group input:focus {
    border-color: var(--gpt-accent);
}

.auth-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: -4px;
    margin-bottom: 16px;
}

.auth-submit-btn {
    width: 100%;
    background-color: var(--text-main);
    color: var(--bg-main);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth-submit-btn:hover {
    background-color: #2a2a2a;
}

.auth-submit-btn.verify {
    background-color: var(--gpt-accent);
}

.auth-submit-btn.verify:hover {
    background-color: var(--gpt-accent-hover);
}

.auth-button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.auth-back-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.auth-back-btn:hover {
    background-color: var(--input-bg);
    color: var(--text-main);
}

/* Voice Search Pulsing Feedback */
.action-btn-circle.mic.recording {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.12) !important;
    animation: micPulse 1.4s infinite ease-in-out;
}

.voice-pill.recording {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}

@keyframes micPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Image Search Results Panel */
.images-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.image-result-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.image-result-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-result-card img:hover {
    transform: scale(1.03);
}

.img-meta {
    padding: 12px 14px;
}

.img-meta h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.img-meta p {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Sidebar backdrop element for mobile viewport overlay click closes */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 45;
    transition: opacity 0.25s ease;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    /* Header toggles */
    .mobile-menu-btn {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        color: var(--text-muted);
        align-items: center;
        justify-content: center;
        margin-right: 8px;
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--text-main);
    }
    
    /* Off-canvas Mobile Sidebar */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 50;
        width: 280px;
        flex: none !important; /* Forces layout engine to completely ignore it for sizing workspace */
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 280px;
        padding: 12px;
        transform: translateX(-100%);
    }
    
    /* Workspace adjustments */
    .main-workspace {
        width: 100vw !important;
        max-width: 100vw !important;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }
    
    .landing-heading {
        font-size: 1.65rem;
        text-align: center;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    /* Suggestions grid transforms to vertical stack */
    .suggestion-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .suggest-card {
        padding: 12px;
    }
    
    /* Chat bubbles text scaling */
    .chat-feed {
        padding: 12px;
        gap: 20px;
    }
    
    .chat-message {
        gap: 10px;
    }
    
    .chat-message.user .message-text {
        max-width: 90%;
    }
    
    .message-text {
        font-size: 0.88rem;
    }
    
    /* Input Form responsiveness */
    .input-container {
        padding: 8px 12px 14px 12px;
    }
    
    .prompt-bar-form {
        padding: 6px 8px;
        gap: 4px;
    }
    
    .prompt-bar-form input {
        font-size: 0.85rem;
        padding: 6px;
    }
    
    .action-btn-circle {
        width: 28px;
        height: 28px;
    }
    
    .action-btn-circle.mic {
        display: none; /* Hide mic button in input bar on small screens to save space */
    }
    
    .voice-pill {
        padding: 4px 8px;
        height: 28px;
    }
    
    .voice-pill span {
        display: none; /* Hide voice text on mobile, showing icon only to save horizontal bar space */
    }
    
    .send-btn {
        width: 28px;
        height: 28px;
    }
    
    /* Split content layout: Canvas overlaps page as full viewport overlay */
    .content-container {
        position: relative;
        display: block;
        width: 100vw;
        max-width: 100%;
        height: calc(100vh - 56px);
        overflow: hidden;
    }
    
    .canvas-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100%;
        z-index: 35;
        background-color: var(--bg-main);
        border-left: none;
        animation: slideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .canvas-content {
        margin: 10px;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr; /* Stack statistics cards vertically */
        gap: 12px;
    }
    
    /* Modals adaptive sizing */
    .modal {
        width: 92%;
        max-width: 92%;
        margin: 10px;
    }
}
