:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --background-color: #0a0e14;
    --sidebar-background: #0d1117;
    --editor-background: #0a0e14;
    --text-color: #c9d1d9;
    --text-color-light: #8b949e;
    --border-color: #21262d;
    --active-item-border: #58a6ff;
    --hover-background: #161b22;
    --tab-active-background: #0d1117;
    --tab-inactive-background: transparent;
    --status-bar-background: #0d1117;
    --panel-background: #0a0e14;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --warning-color: #d29922;
    --error-color: #f85149;
    --glass-bg: rgba(13, 17, 23, 0.85);
    --glass-border: rgba(88, 166, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.15);
}

/* Premium Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.98);
        filter: blur(4px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(20px);
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
        filter: blur(0);
    }
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(31, 111, 235, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(31, 111, 235, 0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(31, 111, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(31, 111, 235, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

body {
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

#intro-screen canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.intro-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
}

.intro-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 122, 204, 0.8));
}

#intro-screen h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 0 20px rgba(0, 122, 204, 0.8),
        0 0 40px rgba(0, 122, 204, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    filter: brightness(1.2);
}

#intro-screen p {
    font-size: 18px;
    color: #e0e0e0;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.8s ease-out 2.5s forwards;
}

#splash-screen.hidden {
    display: none;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.splash-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: logoFadeIn 1.2s ease-out;
    filter: drop-shadow(0 10px 30px rgba(0, 122, 204, 0.3));
}

.splash-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    animation: titleSlideIn 1s ease-out 0.3s both;
}

.splash-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #cccccc;
    margin: 0 0 40px 0;
    animation: subtitleSlideIn 1s ease-out 0.5s both;
}

.splash-loader {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    animation: loaderFadeIn 0.5s ease-out 0.8s both;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #007acc, #00a8ff);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.5);
}

/* Splash Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile Splash Screen */
@media (max-width: 768px) {
    .splash-logo {
        width: 150px;
    }
    
    .splash-title {
        font-size: 32px;
    }
    
    .splash-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .splash-loader {
        width: 200px;
    }
}

/* Mobile and Tablet Support */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    #activity-bar {
        width: 40px;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
    }
    
    #sidebar {
        width: 200px;
        min-width: 150px;
    }
    
    .tab {
        min-width: 80px;
        max-width: 120px;
        font-size: 11px;
        padding: 6px 8px;
        padding-right: 25px;
    }
    
    .breadcrumb {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    #panel {
        height: 40vh;
        min-height: 150px;
    }
    
    .panel-tab {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .tree-item {
        font-size: 12px;
        line-height: 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    #activity-bar {
        width: 100%;
        height: 48px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        z-index: 20;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .activity-icon {
        width: 48px;
        height: 48px;
        border-left: none;
        border-bottom: 2px solid transparent;
        flex: 0 0 48px;
    }

    .activity-icon.active {
        border-left: none;
        border-bottom-color: var(--active-item-border);
    }

    #main-container {
        flex-direction: column;
        height: calc(100vh - 48px);
        /* Account for activity bar height */
    }

    .content-wrapper {
        flex-direction: row;
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    #sidebar {
        width: 100%;
        max-width: 85vw;
        height: 100%;
        border-right: none;
        border-bottom: none;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 10;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar.visible {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    }

    #resize-handle {
        display: none;
    }

    .tab {
        min-width: 80px;
        max-width: 120px;
        font-size: 11px;
        padding: 6px 10px;
    }

    #panel {
        height: 35vh;
        min-height: 150px;
        max-height: 50vh;
    }

    .editor-welcome h1 {
        font-size: 20px;
    }

    .editor-welcome p {
        font-size: 12px;
    }

    .welcome-button {
        font-size: 11px;
        padding: 8px 16px;
    }

    #main-content {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    /* Improve input modals on mobile */
    .input-modal-content {
        width: 90vw !important;
        max-width: 400px;
    }

    /* Make buttons touch-friendly */
    button {
        min-height: 44px;
        padding: 10px 16px;
    }

    /* Status bar improvements */
    #status-bar {
        font-size: 11px;
        padding: 0 8px;
    }

    /* Hide less important status bar items on very small screens */
    .status-section.right > div:not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    #sidebar {
        width: 220px;
    }
    
    .tab {
        min-width: 100px;
        max-width: 150px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .tree-item,
    .tab,
    .panel-tab,
    .activity-icon,
    button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .tree-item:active,
    .tab:active,
    .panel-tab:active,
    .activity-icon:active {
        background-color: var(--active-item-background);
    }
    
    /* Disable hover effects on touch devices */
    .tree-item:hover,
    .tab:hover,
    .panel-tab:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .tab .codicon-close {
        font-size: 18px;
        padding: 8px;
    }
    
    .panel-action-btn {
        padding: 8px 12px;
    }
}

/* Hide scrollbars on mobile for cleaner look */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Mobile sidebar toggle */
    #sidebar {
        position: fixed;
        left: 0;
        top: 48px;
        bottom: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        height: auto;
        max-height: calc(100vh - 48px);
    }
    
    #sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Mobile overlay */
    #sidebar.mobile-open::before {
        content: '';
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-color);
        padding: 4px 8px;
        cursor: pointer;
        font-size: 16px;
        margin-right: 8px;
        border-radius: 3px;
        transition: background-color 0.2s;
    }
    
    .mobile-menu-btn:hover {
        background-color: var(--hover-background);
    }
}

/* Desktop - hide mobile menu button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

#vscode-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

#main-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
    align-items: stretch;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

#activity-bar {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    background: linear-gradient(180deg, #0d1117 0%, #0a0e14 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(88, 166, 255, 0.08);
    display: flex;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(88, 166, 255, 0.05);
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    height: 100%;
}

.activity-bar-item {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2px solid transparent;
}

.activity-bar-item:hover {
    background: rgba(31, 111, 235, 0.1);
    color: var(--accent-color);
}

.activity-bar-item:active {
    background: rgba(31, 111, 235, 0.2);
}

.activity-bar-item i {
    font-size: 24px;
}

/* GitHub Icon Special Style */
.github-icon {
    position: relative;
}

.github-icon i {
    font-size: 26px !important;
}

.github-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(48, 54, 61, 0.5);
}

.github-icon:hover {
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.15) 0%, rgba(9, 105, 218, 0.15) 100%) !important;
}

.github-icon:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1f6feb;
}

/* Activity Bar Separator */
.activity-separator {
    width: 32px;
    height: 1px;
    background: rgba(48, 54, 61, 0.5);
    margin: 8px auto;
}

.activity-icon {
    width: 44px;
    height: 44px;
    margin: 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 22px;
    color: var(--text-color-light);
    background: transparent;
}

.activity-icon:hover {
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent-color);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.activity-icon.active {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.18) 0%, rgba(88, 166, 255, 0.08) 100%);
    color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.3), 0 4px 16px rgba(88, 166, 255, 0.25);
}

.activity-icon.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-color) 0%, rgba(88, 166, 255, 0.5) 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
}

.activity-icon.school-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, #8b5cf6) 1;
    position: relative;
}

.activity-icon.school-icon::after {
    content: '🏫';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
}

.activity-icon.school-icon:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.activity-icon.ai-icon {
    position: relative;
}

.activity-icon.ai-icon::after {
    content: '✨';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
}

/* AI Chat Panel */
.ai-chat-panel {
    width: 400px;
    background: var(--sidebar-background);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--titlebar-background);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.ai-chat-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.ai-chat-close-btn:hover {
    opacity: 1;
    background: var(--hover-background);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.ai-chat-welcome h3 {
    margin: 16px 0 8px 0;
    color: var(--text-color);
}

.ai-chat-welcome p {
    margin: 0;
    font-size: 13px;
}

.ai-chat-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-chat-message.user {
    align-items: flex-end;
}

.ai-chat-message.assistant {
    align-items: flex-start;
}

.ai-chat-message-content {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-chat-message.user .ai-chat-message-content {
    background: var(--accent-color);
    color: white;
}

.ai-chat-message.assistant .ai-chat-message-content {
    background: var(--input-background);
    border: 1px solid var(--border-color);
}

.ai-chat-message-label {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 0 4px;
}

.ai-chat-input-container {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--editor-background);
}

.ai-chat-input-container textarea {
    flex: 1;
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 13px;
    resize: none;
    outline: none;
}

.ai-chat-input-container textarea:focus {
    border-color: var(--accent-color);
}

.ai-chat-send-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.ai-chat-send-btn:hover {
    opacity: 0.9;
}

.ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-chat-loading::before {
    content: '●';
    animation: ai-chat-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-chat-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Code blocks in AI chat */
.ai-chat-message-content .code-block {
    margin: 8px 0;
    background: var(--editor-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.ai-chat-message-content .code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
}

.ai-chat-message-content .code-language {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}

.ai-chat-message-content .code-copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.ai-chat-message-content .code-copy-btn:hover {
    background: var(--hover-background);
    color: var(--text-color);
}

.ai-chat-message-content pre {
    margin: 0;
    padding: 12px;
    overflow-x: auto;
    background: transparent;
    white-space: pre;
}

.ai-chat-message-content pre code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre;
    display: block;
}

.ai-chat-message-content .inline-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #e06c75;
}

.ai-chat-message-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.ai-chat-message-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.ai-chat-message-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.ai-chat-message-content a:hover {
    text-decoration: underline;
}

#sidebar {
    width: 280px;
    min-width: 220px;
    max-width: 420px;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(10, 14, 20, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(88, 166, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(88, 166, 255, 0.05);
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

#sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(31, 111, 235, 0.5);
}

#sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-color) 50%, transparent);
    opacity: 0.3;
}

#resize-handle {
    width: 3px;
    min-width: 3px;
    cursor: col-resize;
    background-color: var(--border-color);
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

#resize-handle:hover {
    background-color: var(--accent-color);
}

#main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    height: 100%;
}

#editor-group {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    position: relative;
    background: var(--editor-background);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.4s ease-out;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border-bottom: 1px solid #1e1e1e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#tabs {
    display: flex;
    flex-grow: 1;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 0;
}

#tabs::-webkit-scrollbar {
    height: 3px;
}

#tabs::-webkit-scrollbar-track {
    background: transparent;
}

#tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#editor-actions {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.action-item {
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    font-size: 18px;
    transition: background-color 0.12s ease-out,
                transform 0.12s ease-out,
                color 0.12s ease-out;
}

.action-item:hover {
    background-color: var(--hover-background);
    transform: scale(1.1);
}

.action-item:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.05s ease-out;
}

.action-item.ai-action-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

#tabs:empty::after {
    content: 'No files open';
    color: var(--text-color-light);
    font-size: 12px;
    padding: 0 12px;
    font-style: italic;
}

.tab {
    padding: 11px 18px;
    background: transparent;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(88, 166, 255, 0.06);
    border-top: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color-light);
    position: relative;
    padding-right: 36px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 130px;
    max-width: 220px;
    flex-shrink: 0;
    overflow: hidden;
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tab:hover {
    background: rgba(88, 166, 255, 0.08);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-top-color: rgba(88, 166, 255, 0.4);
}

.tab.active {
    background: linear-gradient(180deg, rgba(88, 166, 255, 0.12) 0%, rgba(88, 166, 255, 0.06) 100%);
    color: var(--accent-color);
    border-top: 2px solid var(--accent-color);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.2), 0 4px 16px rgba(88, 166, 255, 0.2);
    transform: translateY(0);
    font-weight: 600;
}

.tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
}

.tab:active {
    transform: translateY(0);
    transition: transform 0.05s ease-out;
}

.tab .codicon-close {
    margin-left: 8px;
    font-size: 16px;
    opacity: 0.7;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px;
    border-radius: 3px;
    transition: all 0.15s ease-out;
}

.tab:hover .codicon-close {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.tab .codicon-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.tab .codicon-close:active {
    transform: translateY(-50%) scale(0.95);
}

.tab.dirty::after {
    content: '●';
    position: absolute;
    right: 25px;
    color: #e0b429;
    font-size: 10px;
    line-height: 1;
}

#editor {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    font-family: "Fira Code", Consolas, "Courier New", monospace;
    font-size: 14px;
    white-space: pre-wrap;
    position: relative;
    background: #1e1e1e;
    height: 100%;
    width: 100%;
}

#editor .monaco-editor,
#editor .monaco-diff-editor {
    height: 100% !important;
    width: 100% !important;
}

/* Welcome screen when no file is open */
.editor-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color-light);
    text-align: center;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.editor-welcome button {
    pointer-events: auto;
}

.editor-welcome h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-color);
}

.editor-welcome p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.editor-welcome .shortcut {
    display: inline-block;
    background-color: var(--sidebar-background);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 12px;
    margin: 0 4px;
}

.editor-welcome .welcome-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.editor-welcome .welcome-button {
    padding: 10px 20px;
    background-color: var(--active-item-border);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.editor-welcome .welcome-button:hover {
    background-color: #005a9e;
}

.editor-welcome .welcome-button.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.editor-welcome .welcome-button.secondary:hover {
    background-color: var(--hover-background);
}

#panel {
    height: 25vh;
    min-height: 150px;
    max-height: 50vh;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    background: #252526;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: height 0.15s ease-out, opacity 0.15s ease-out, transform 0.15s ease-out;
}

#panel.panel-hidden {
    height: 0 !important;
    min-height: 0 !important;
    border-top: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(5px);
}

#panel.panel-visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-open-btn {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--active-item-border);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.15s ease-out;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 122, 204, 0.3);
    pointer-events: auto;
}

.panel-open-btn:hover {
    background: #005a9e;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 -4px 15px rgba(0, 122, 204, 0.5);
}

.panel-open-btn:active {
    transform: translateX(-50%) translateY(-1px);
    transition: all 0.05s ease-out;
}

#panel-resize-handle {
    height: 5px;
    background-color: var(--border-color);
    cursor: ns-resize;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    user-select: none;
}

#panel-resize-handle:hover {
    background-color: var(--active-item-border);
    height: 6px;
}

#panel-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 0 8px;
}

.panel-tab {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color-light);
    border: none;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 6px 6px 0 0;
    margin: 4px 2px 0;
}

.panel-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.panel-tab:hover {
    background: rgba(31, 111, 235, 0.1);
    color: var(--text-color);
    transform: translateY(-1px);
}

.panel-tab:hover::before {
    width: 60%;
}

.panel-tab.active {
    background: linear-gradient(180deg, rgba(31, 111, 235, 0.15) 0%, rgba(22, 27, 34, 0.8) 100%);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.2);
}

.panel-tab.active::before {
    width: 100%;
    height: 3px;
    box-shadow: 0 0 10px rgba(31, 111, 235, 0.6);
}

.panel-tab:active {
    transform: translateY(0);
}

.panel-actions {
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.panel-action-btn {
    background: transparent;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.panel-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(31, 111, 235, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-action-btn:hover {
    background: rgba(31, 111, 235, 0.15);
    color: var(--text-color);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.3);
}

.panel-action-btn:hover::before {
    opacity: 1;
}

.panel-action-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease-out;
}

#panel-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.98) 0%, rgba(22, 27, 34, 0.95) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel-view {
    /* Hide non-active panels, but keep them in the layout to preserve state */
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.panel-view.active {
    /* Show the active panel */
    visibility: visible;
    position: relative; /* Let it take up space in the flex container */
    display: flex;
    flex-direction: column;
}

#terminal {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0e14 0%, #0d1117 100%);
    padding: 8px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(88, 166, 255, 0.05);
}

.xterm {
    height: 100% !important; /* xterm.js requires this */
}

#status-bar {
    height: 24px;
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.95) 0%, rgba(31, 111, 235, 0.95) 100%);
    color: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    animation: slideUp 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    z-index: 100;
    position: relative;
}

#status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.status-item {
    margin-right: 15px;
    cursor: pointer;
}

.status-item .codicon {
    margin-right: 5px;
}

#status-left, #status-right {
    display: flex;
    align-items: center;
}

#status-right .status-item:last-child {
    margin-right: 0;
}

#file-explorer {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 12px 16px;
}

#file-explorer h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color-light);
    letter-spacing: 0.5px;
    margin: 16px 0 8px 0;
    padding: 0 4px;
    padding: 10px 10px 5px 4px;
    margin: 0 0 5px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--sidebar-background);
    z-index: 1;
}

.tree-item {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.tree-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-color-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border-radius: 8px;
    min-height: 36px;
    position: relative;
    margin: 3px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.tree-item-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.tree-item-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tree-item-content:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.tree-item-content:hover::before {
    opacity: 1;
}

.tree-item-content:hover::after {
    opacity: 1;
}

.tree-item-content:active {
    transform: translateX(4px) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tree-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.tree-item-content:hover .tree-item-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.tree-item-icon .codicon {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tree-item-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

/* Directory-specific styles */
.tree-item[data-type="directory"] .tree-item-content {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid rgba(220, 182, 122, 0.6);
}

.tree-item[data-type="directory"] .tree-item-content:hover {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: rgba(220, 182, 122, 0.9);
}

.tree-item[data-type="directory"] .tree-item-label {
    font-weight: 600;
    color: #dcb67a;
}

.tree-item[data-type="directory"].closed > .tree-item-content .tree-item-label::after {
    content: ' ▸';
    color: rgba(220, 182, 122, 0.8);
    margin-left: 4px;
}

.tree-item[data-type="directory"]:not(.closed) > .tree-item-content .tree-item-label::after {
    content: ' ▾';
    color: rgba(220, 182, 122, 0.8);
    margin-left: 4px;
}

/* File-specific styles */
.tree-item[data-type="file"] .tree-item-content {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
}

.tree-item[data-type="file"] .tree-item-content:hover {
    border-left-color: rgba(102, 126, 234, 0.5);
}

.tree-item[data-type="file"] .tree-item-label {
    font-weight: 400;
    color: var(--text-color-light);
}

.tree-item.selected .tree-item-content {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #fff;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tree-item.selected .tree-item-content::before {
    opacity: 1;
}

.tree-item.selected .tree-item-content::after {
    opacity: 1;
}

.tree-item.selected .tree-item-icon {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Folder icons */
.tree-item.directory .codicon-folder {
    color: #dcb67a;
    font-size: 16px;
}

.tree-item.directory.open .codicon-folder {
    color: #dcb67a;
}

.tree-item.directory .codicon-folder-opened {
    color: #dcb67a;
}

.tree-children {
    margin-left: 20px;
    width: 100%;
}

.tree-item.directory.closed > .tree-children {
    display: none;
}

/* File icons with colors */
.tree-item.file .codicon-file {
    color: #c5c5c5;
    font-size: 16px;
}

/* JavaScript/TypeScript files */
.tree-item.file[data-path$=".js"] .codicon-file,
.tree-item.file[data-path$=".jsx"] .codicon-file {
    color: #f0db4f;
}

.tree-item.file[data-path$=".ts"] .codicon-file,
.tree-item.file[data-path$=".tsx"] .codicon-file {
    color: #3178c6;
}

/* HTML/CSS files */
.tree-item.file[data-path$=".html"] .codicon-file {
    color: #e34c26;
}

.tree-item.file[data-path$=".css"] .codicon-file,
.tree-item.file[data-path$=".scss"] .codicon-file {
    color: #563d7c;
}

/* JSON files */
.tree-item.file[data-path$=".json"] .codicon-file {
    color: #89d185;
}

/* Markdown files */
.tree-item.file[data-path$=".md"] .codicon-file {
    color: #519aba;
}

/* Python files */
.tree-item.file[data-path$=".py"] .codicon-file {
    color: #3776ab;
}

/* C/C++ files */
.tree-item.file[data-path$=".c"] .codicon-file,
.tree-item.file[data-path$=".cpp"] .codicon-file,
.tree-item.file[data-path$=".h"] .codicon-file {
    color: #a8b9cc;
}

/* Java files */
.tree-item.file[data-path$=".java"] .codicon-file {
    color: #b07219;
}

/* Image files */
.tree-item.file[data-path$=".png"] .codicon-file,
.tree-item.file[data-path$=".jpg"] .codicon-file,
.tree-item.file[data-path$=".jpeg"] .codicon-file,
.tree-item.file[data-path$=".gif"] .codicon-file,
.tree-item.file[data-path$=".svg"] .codicon-file {
    color: #a074c4;
}

/* Premium Download Buttons */
.premium-download-btn {
    flex: 1;
    position: relative;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.premium-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.premium-download-btn:hover::before {
    left: 100%;
}

.premium-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.premium-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.premium-download-btn .codicon {
    font-size: 16px;
    z-index: 1;
}

.premium-download-btn span {
    z-index: 1;
    font-weight: 500;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.premium-download-btn:active .btn-glow {
    width: 300px;
    height: 300px;
}

#notification-area {
    position: fixed;
    bottom: 30px;
    right: 10px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    opacity: 0.9;
    transition: opacity 0.5s ease-in-out;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

/* Custom Scrollbar (for WebKit browsers) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Apply to specific scrollable areas */
#sidebar, #editor, #panel {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #555 var(--background-color); /* Firefox */
}

/* Resize handle active state */
#resize-handle:hover {
    background-color: var(--active-item-border);
}

/* Panel content styling */
#panel-content {
    position: relative;
}

/* Problems, Output, Debug Console panels */
#problems, #output, #debug-console {
    font-family: monospace;
    font-size: 13px;
    padding: 10px;
}

.panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color-light);
    text-align: center;
}

.panel-empty-state .codicon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.panel-empty-state p {
    margin: 5px 0;
    font-size: 14px;
}

/* Context menu styling */
.context-menu {
    position: fixed;
    background-color: var(--sidebar-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background-color: var(--hover-background);
}

.context-menu-item .codicon {
    font-size: 16px;
}

.context-menu-item.disabled {
    color: var(--text-color-light);
    cursor: not-allowed;
}

.context-menu-item.disabled:hover {
    background-color: transparent;
}

.context-menu-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* Old icon styles removed - now using codicon elements in HTML */

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.command-palette.hidden {
    display: none;
}

.command-palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.command-palette-container {
    position: relative;
    width: 600px;
    max-width: 90vw;
    background: linear-gradient(180deg, #2d2d30 0%, #252526 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.command-palette-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
}

.command-palette-header .codicon {
    font-size: 18px;
    color: #667eea;
}

#command-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-family);
}

#command-palette-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.command-palette-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.command-palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.command-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.command-palette-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.command-palette-item.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.command-palette-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 0 0 3px;
}

.command-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.command-info {
    flex: 1;
    min-width: 0;
}

.command-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.command-category {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.command-shortcut {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
}

.command-palette-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* Quick Open - Ctrl+P */
.quick-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.quick-open.hidden {
    display: none;
}

.quick-open-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.quick-open-container {
    position: relative;
    width: 700px;
    max-width: 90vw;
    background: linear-gradient(180deg, #2d2d30 0%, #252526 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.quick-open-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
}

.quick-open-header .codicon {
    font-size: 18px;
    color: #667eea;
}

#quick-open-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-family);
}

#quick-open-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.quick-open-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.quick-open-results {
    max-height: 450px;
    overflow-y: auto;
    padding: 8px;
}

.quick-open-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.quick-open-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.quick-open-item.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.quick-open-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 0 0 3px;
}

.file-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-type {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-open-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.quick-open-empty .codicon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.quick-open-empty p {
    font-size: 14px;
    margin: 0;
}

/* Output Panel with Input */
#output-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--editor-background);
    font-family: 'Courier New', monospace;
    padding: 10px;
    overflow-y: auto;
}

#output-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 12px;
    box-sizing: border-box;
}

#output-input-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    position: sticky;
    bottom: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.output-prompt {
    color: #4ec9b0;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(78, 201, 176, 0.3);
}

.output-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    outline: none;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.output-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.output-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.output-line {
    margin: 2px 0;
    padding: 2px 4px;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.output-line.input {
    color: #4ec9b0;
}

.output-line.output {
    color: var(--text-color);
}

.output-line.error {
    color: #f48771;
}

.output-line.success {
    color: #89d185;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--active-item-border);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Source Control View */
#source-control-view {
    padding: 0;
    color: var(--text-color);
    font-size: 13px;
}

#source-control-view h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-color-light);
    padding: 10px 10px 5px 12px;
    margin: 0 0 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.source-control-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.source-control-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#commit-message {
    width: 100%;
    padding: 8px;
    background-color: var(--hover-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    border-radius: 3px;
    resize: vertical;
    min-height: 60px;
}

#commit-message:focus {
    outline: none;
    border-color: var(--active-item-border);
}

.commit-btn {
    padding: 6px 12px;
    background-color: var(--active-item-border);
    border: none;
    color: white;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease-out,
                transform 0.15s ease-out,
                box-shadow 0.15s ease-out;
}

.commit-btn:hover:not(:disabled) {
    background-color: #0e639c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.4);
}

.commit-btn:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.05s ease-out;
}

.commit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.source-control-changes {
    padding: 12px 0;
}

.changes-header {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-color-light);
    padding: 8px 12px;
    font-weight: 600;
}

.changes-list {
    padding: 0 8px;
}

.change-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.12s ease-out,
                transform 0.12s ease-out;
    gap: 8px;
}

.change-item:hover {
    background-color: var(--hover-background);
    transform: translateX(3px);
}

.change-item:active {
    transform: translateX(1px);
    transition: transform 0.05s ease-out;
}

.change-item .codicon {
    font-size: 16px;
    flex-shrink: 0;
}

.change-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.change-status.modified {
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.change-status.added {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.no-changes {
    padding: 20px;
    text-align: center;
    color: var(--text-color-light);
    font-size: 12px;
}

/* Activity Bar Icons */
.activity-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color-light);
    transition: color 0.15s ease-out, 
                background-color 0.15s ease-out,
                border-left-color 0.15s ease-out,
                transform 0.15s ease-out;
    border-left: 2px solid transparent;
}

.activity-icon:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.activity-icon.active {
    color: var(--text-color);
    border-left-color: var(--active-item-border);
}

.activity-icon:active {
    transform: scale(0.95);
    transition: transform 0.05s ease-out;
}

/* GitHub button - normal style (no special effects) */

.activity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--active-item-border);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Debug View */
#debug-view {
    padding: 10px;
    color: var(--text-color);
    font-size: 13px;
    overflow-y: auto;
    overflow-x: hidden;
}

.debug-controls {
    display: flex;
    gap: 4px;
    padding: 8px;
    background-color: #2d2d2d;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.debug-btn {
    background-color: var(--hover-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debug-btn:hover:not(:disabled) {
    background-color: var(--active-item-border);
    border-color: var(--active-item-border);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.3);
}

.debug-btn:active:not(:disabled) {
    transform: translateY(0);
}

.debug-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-section-header {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-color-light);
}

.debug-content {
    padding-left: 10px;
    color: var(--text-color-light);
    font-style: italic;
}

/* Search box styling */
.search-box {
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.8) 0%, transparent 100%);
    flex-shrink: 0;
    border-bottom: 1px solid var(--glass-border);
}

.search-box input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 13px;
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(13, 17, 23, 0.8);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: var(--text-color-light);
    opacity: 0.6;
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #252526;
    border-bottom: 1px solid #1e1e1e;
    font-size: 12px;
    flex-shrink: 0;
    min-height: 30px;
}

.breadcrumb-item {
    color: var(--text-color-light);
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: var(--text-color);
}

.breadcrumb-separator {
    margin: 0 4px;
    color: var(--text-color-light);
}

/* Breakpoint glyph */
.breakpoint-glyph {
    background: #e51400 !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    margin-left: 4px !important;
    margin-top: 3px !important;
    display: inline-block !important;
}

/* Make glyph margin more visible */
.monaco-editor .margin-view-overlays {
    width: 20px !important;
}

.monaco-editor .glyph-margin {
    width: 20px !important;
    background-color: #1e1e1e !important;
    cursor: pointer !important;
}

/* ===== GitHub Styles ===== */
.github-login {
    padding: 20px;
}

.github-login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.github-login-content p {
    margin: 20px 0;
    color: var(--text-color-light);
}

.github-login-btn {
    padding: 10px 20px;
    background: var(--active-item-border);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease-out;
}

.github-login-btn:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.4);
}

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

.github-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.github-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.github-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.github-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.12s ease-out;
}

.github-logout-btn:hover {
    background: var(--hover-background);
    color: var(--text-color);
}

.github-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.github-action-btn {
    flex: 1;
    padding: 6px 12px;
    background: var(--hover-background);
    border: none;
    color: var(--text-color);
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.12s ease-out;
}

.github-action-btn:hover {
    background: var(--active-item-background);
    transform: translateY(-1px);
}

.github-repos-list {
    padding: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.github-repo-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--hover-background);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.12s ease-out;
}

.github-repo-item:hover {
    background: var(--active-item-background);
    transform: translateX(3px);
}

.repo-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.repo-info .codicon {
    font-size: 20px;
    color: var(--active-item-border);
    flex-shrink: 0;
}

.repo-details {
    flex: 1;
    min-width: 0;
}

.repo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.repo-description {
    font-size: 11px;
    color: var(--text-color-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-actions {
    display: flex;
    gap: 4px;
}

.repo-action-btn {
    background: transparent;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 3px;
    transition: all 0.12s ease-out;
}

.repo-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transform: scale(1.1);
}

.repo-action-btn:active {
    transform: scale(0.95);
}

.loading, .no-repos, .error-message {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-color-light);
    font-size: 12px;
}

/* GitHub Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.btn-primary, .btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #0078d4;
    color: white;
}

.btn-primary:hover {
    background: #106ebe;
}

.btn-success {
    background: #16825d;
    color: white;
}

.btn-success:hover {
    background: #13674a;
}

.btn-primary:disabled, .btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#github-repos-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.github-repo-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.github-repo-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.github-repo-item input[type="radio"] {
    margin-right: 10px;
    margin-top: 2px;
}

.github-repo-item label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.github-repo-item strong {
    color: var(--text-color);
    font-size: 14px;
}

.github-repo-item span {
    color: var(--text-color-light);
    font-size: 12px;
}

.github-repo-item small {
    color: var(--text-color-light);
    font-size: 11px;
}

/* Push Modal Styles */
.push-section {
    margin-bottom: 15px;
}

.push-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-color);
}

.push-mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.push-mode-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.push-mode-option:hover {
    background: var(--hover-background);
    border-color: var(--text-color-light);
}

.push-mode-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.push-mode-option .option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.push-mode-option strong {
    color: var(--text-color);
    font-size: 14px;
}

.push-mode-option span {
    color: var(--text-color-light);
    font-size: 12px;
}

.push-repo-option {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.push-repo-option:hover {
    background: var(--hover-background);
    border-color: var(--text-color-light);
}

.push-repo-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.push-repo-option .repo-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.push-repo-option strong {
    color: var(--text-color);
    font-size: 14px;
}

.push-repo-option span {
    color: var(--text-color-light);
    font-size: 12px;
}

.push-file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.push-file-item:hover {
    background: var(--hover-background);
}

.push-file-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.push-file-item span {
    color: var(--text-color);
    font-size: 13px;
}

#push-file-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--hover-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--active-item-background);
}

.github-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color-light);
}

.terminal-status::before {
    content: '●';
    font-size: 10px;
    color: #4ec9b0;
}

.sandbox-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sandbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.sandbox-btn:active {
    transform: translateY(0);
}

.sandbox-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#terminal-container {
    height: calc(100% - 40px);
}

/* Zen Mode Exit Button */
.zen-exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 16px;
}

.zen-exit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.zen-exit-btn:active {
    transform: scale(0.95);
}

.zen-exit-btn .codicon {
    font-size: 20px;
}

/* Tutorial Modal */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.tutorial-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: tutorialSlideIn 0.4s ease-out;
}

@keyframes tutorialSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #007acc 0%, #005a9e 100%);
    color: white;
}

.tutorial-header h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.tutorial-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.tutorial-body {
    padding: 30px;
    color: var(--text-color);
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.tutorial-body p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.tutorial-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.tutorial-body li {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-color-light);
}

.tutorial-body strong {
    color: var(--active-item-border);
    font-weight: 600;
}

.tutorial-body small {
    color: var(--text-color-light);
    font-size: 13px;
}

.tutorial-footer {
    padding: 20px 30px;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-nav {
    display: flex;
    gap: 10px;
}

.tutorial-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-btn-primary {
    background: var(--active-item-border);
    color: white;
}

.tutorial-btn-primary:hover {
    background: #0098ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.tutorial-btn-secondary {
    background: transparent;
    color: var(--text-color-light);
    border: 1px solid var(--border-color);
}

.tutorial-btn-secondary:hover {
    background: var(--hover-background);
    color: var(--text-color);
    border-color: var(--text-color-light);
}

.tutorial-btn:active {
    transform: translateY(0);
}

/* Tutorial highlight effect */
.tutorial-highlight {
    position: relative;
    z-index: 10000;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.5),
                0 0 0 8px rgba(0, 122, 204, 0.3),
                0 0 20px rgba(0, 122, 204, 0.6) !important;
    border-radius: 4px;
    animation: tutorialPulse 2s ease-in-out infinite;
}

@keyframes tutorialPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.5),
                    0 0 0 8px rgba(0, 122, 204, 0.3),
                    0 0 20px rgba(0, 122, 204, 0.6);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.7),
                    0 0 0 8px rgba(0, 122, 204, 0.5),
                    0 0 30px rgba(0, 122, 204, 0.8);
    }
}

/* Live Preview Modal */
.preview-modal {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 1200px;
    height: 800px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: hidden;
    min-width: 400px;
    min-height: 300px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    cursor: move;
    user-select: none;
    border-radius: 8px 8px 0 0;
}

.preview-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.preview-actions {
    display: flex;
    gap: 5px;
}

.preview-action-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

#preview-frame {
    flex: 1;
    border: none;
    background: white;
}

/* GitHub Sections */
.github-section {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.github-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-color);
}

.github-section button {
    width: 100%;
    margin-top: 10px;
}

#cloned-repos-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.cloned-repo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.cloned-repo-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cloned-repo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cloned-repo-info strong {
    color: var(--text-color);
    font-size: 13px;
}

.cloned-repo-info span {
    color: var(--text-color-light);
    font-size: 11px;
}

.cloned-repo-info small {
    color: var(--text-color-light);
    font-size: 10px;
}

.remove-repo-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.remove-repo-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Premium Input Modal */
.input-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-modal {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 480px;
    max-width: 600px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(88, 166, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.input-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

.input-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-modal-title i {
    font-size: 20px;
    color: var(--accent-color);
}

.input-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 17, 23, 0.8);
    border: 1.5px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-modal-input:focus {
    border-color: var(--accent-color);
    box-shadow:
        0 0 0 3px rgba(88, 166, 255, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(88, 166, 255, 0.2);
    background: rgba(13, 17, 23, 0.95);
}

.input-modal-input::placeholder {
    color: var(--text-color-light);
    opacity: 0.6;
}

.input-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.input-modal-button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.input-modal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.input-modal-button:active::before {
    width: 300px;
    height: 300px;
}

.input-modal-button-cancel {
    background: rgba(139, 148, 158, 0.1);
    border: 1px solid rgba(139, 148, 158, 0.2);
    color: var(--text-color-light);
}

.input-modal-button-cancel:hover {
    background: rgba(139, 148, 158, 0.15);
    border-color: rgba(139, 148, 158, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.input-modal-button-confirm {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(31, 111, 235, 0.9) 100%);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.input-modal-button-confirm:hover {
    background: linear-gradient(135deg, rgba(88, 166, 255, 1) 0%, rgba(31, 111, 235, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.input-modal-button-confirm:active {
    transform: translateY(0);
}
