
:root {
    font-size: 14px; /* Base size reduced for higher density */
}
body { font-family: 'Inter', sans-serif; }
code, pre, textarea, #line-numbers { font-family: 'JetBrains Mono', monospace; }

/* Light Theme Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Mask fade effect */
.mask-fade-right {
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

#code-editor {
    outline: none;
    tab-size: 4;
}

/* Light Theme Markdown */
.markdown-body pre {
    background-color: #f8fafc; /* slate-50 */
    border: 1px solid #e2e8f0; /* slate-200 */
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.markdown-body code {
    background-color: #f1f5f9; /* slate-100 */
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #0f172a; /* slate-900 */
    font-weight: 500;
}
.markdown-body p { margin-bottom: 1rem; line-height: 1.6; color: #334155; /* slate-700 */ }
.markdown-body strong { color: #0f172a; font-weight: 600; }
.markdown-body ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #334155; }
.markdown-body ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1rem; color: #334155; }

.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Context Menu - Light Theme */
.context-menu {
    position: fixed;
    z-index: 1000;
    width: 160px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0;
    display: none;
}

.context-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    color: #334155;
    font-size: 0.875rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

.context-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.context-menu-item.danger {
    color: #ef4444;
}
.context-menu-item.danger:hover {
    background: #fef2f2;
}
.context-menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

/* Resizers - Light Theme */
.resizer {
    width: 8px;
    background-color: #f8fafc;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #94a3b8;
    flex-shrink: 0;
    z-index: 50;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.resizer:hover, .resizer.resizing {
    background-color: #3b82f6; /* Blue hover */
    color: white;
}

.select-none {
    user-select: none;
}

/* Snapshot Items - Light Theme */
.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.snapshot-item:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Planner Ports */
.cursor-crosshair {
    cursor: crosshair;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Hide Resizers on Mobile */
    .resizer {
        display: none !important;
    }

    /* By default, hide all panes on mobile */
    #chat-pane, #explorer-pane, #code-pane {
        width: 100% !important;
        min-width: 100% !important;
        display: none;
    }

    /* Show panes based on active class on body/container */
    .mobile-view-chat #chat-pane {
        display: flex;
    }
    
    .mobile-view-files #explorer-pane {
        display: flex;
    }
    
    .mobile-view-code #code-pane {
        display: flex;
    }
    
    /* Improve Tap Targets & Prevent Zoom */
    input, select, textarea {
        font-size: 16px !important; /* Forces readable size on iOS to prevent auto-zoom */
    }
    
    /* Ensure Modals don't overflow */
    .modal-content {
        max-height: 90dvh;
    }
}
