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

body {
    font-family: 'Inter', sans-serif;
    background: #1e1e1e;
    color: #cccccc;
    overflow: hidden;
    line-height: 1.6;
}

/* VS Code Container */
.vscode-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

/* VS Code Header */
.vscode-header {
    background: #3c3c3c;
    border-bottom: 1px solid #474747;
    height: 30px;
    display: flex;
    align-items: center;
    -webkit-app-region: drag;
}

.vscode-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.file-path {
    font-size: 12px;
    color: #cccccc;
    font-family: 'JetBrains Mono', monospace;
}

.titlebar-center {
    flex: 1;
    text-align: center;
}

.app-title {
    font-size: 13px;
    color: #cccccc;
    font-weight: 500;
}

.titlebar-right {
    display: flex;
    align-items: center;
}

.status-bar {
    display: flex;
    gap: 15px;
}

.status-item {
    font-size: 12px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* VS Code Interface */
.vscode-interface {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.app-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* VS Code Sidebar */
.vscode-sidebar {
    width: 320px;
    background: #252526;
    border-right: 1px solid #474747;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.sidebar-header {
    background: #2d2d30;
    border-bottom: 1px solid #474747;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}

.explorer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.action-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background: #3c3c3c;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    height: calc(100vh - 65px); /* Account for header and status bar */
}

.file-explorer {
    padding: 0;
    min-height: 100%;
}

/* File Explorer Items */
.folder-item {
    border-bottom: 1px solid #2d2d30;
}

.folder-header {
    padding: 8px 12px;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 13px;
    font-weight: 500;
    min-height: 36px;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-header:hover {
    background: #2a2d2e;
}

.folder-header.active {
    background: #37373d;
}

.folder-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.folder-icon {
    color: #c5c5c5;
    font-size: 14px;
}

.folder-toggle {
    transition: transform 0.2s;
    color: #c5c5c5;
    font-size: 10px;
}

.folder-toggle.expanded {
    transform: rotate(90deg);
}

.folder-count {
    background: #0e639c;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.files-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1e1e1e;
}

.files-list.expanded {
    max-height: none;
    overflow-y: auto;
}

.file-item {
    padding: 6px 12px 6px 32px;
    color: #cccccc;
    cursor: pointer;
    border-bottom: 1px solid #2d2d30;
    transition: background-color 0.2s;
    position: relative;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    min-height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-item:hover {
    background: #2a2d2e;
}

.file-item.completed {
    color: #4ec9b0;
}

.file-item.completed::before {
    content: '✓';
    position: absolute;
    left: 16px;
    color: #4ec9b0;
    font-weight: bold;
    font-size: 12px;
}

.file-item.active {
    background: #094771;
    color: #ffffff;
    border-left: 2px solid #007acc;
}

.file-item.active.completed {
    background: #094771;
    color: #4ec9b0;
    border-left: 2px solid #007acc;
}

.file-name {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 2px;
}

.file-difficulty {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 500;
}

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    overflow: hidden;
}

/* Editor Tabs */
.editor-tabs {
    background: #2d2d30;
    border-bottom: 1px solid #474747;
    display: flex;
    align-items: center;
    height: 35px;
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #2d2d30;
    border-right: 1px solid #474747;
    cursor: pointer;
    font-size: 13px;
    color: #cccccc;
    transition: background-color 0.2s;
    min-width: 120px;
    max-width: 200px;
    position: relative;
}

.tab:hover {
    background: #3c3c3c;
}

.tab.active {
    background: #1e1e1e;
    color: #ffffff;
}

.tab-close {
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    font-size: 10px;
    margin-left: auto;
}

.tab-close:hover {
    background: #3c3c3c;
    color: #ffffff;
}

/* Editor Content */
.editor-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Welcome Screen */
.welcome-screen {
    padding: 40px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-icon {
    font-size: 4rem;
    color: #007acc;
    margin-bottom: 20px;
}

.welcome-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-header p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 500px;
}

.welcome-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat-card {
    background: #2d2d30;
    border: 1px solid #474747;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
}

.stat-icon {
    font-size: 2rem;
    color: #007acc;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Challenge Editor */
.challenge-editor {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.challenge-info {
    padding: 20px;
    background: #2d2d30;
    border-bottom: 1px solid #474747;
}

.challenge-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.challenge-category {
    background: #007acc;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.challenge-difficulty {
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.challenge-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.challenge-description {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Markdown styling for challenge descriptions */
.challenge-description h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    border-bottom: 1px solid #474747;
    padding-bottom: 8px;
}

.challenge-description h2:first-child {
    margin-top: 0;
}

.challenge-description p {
    margin: 12px 0;
    color: #cccccc;
}

.challenge-description strong {
    color: #ffffff;
    font-weight: 600;
}

.challenge-description code {
    background: #2d2d30;
    color: #d7ba7d;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.challenge-description pre {
    background: #1e1e1e;
    border: 1px solid #474747;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.challenge-description pre code {
    background: none;
    color: #d4d4d4;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

.challenge-description ul, .challenge-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.challenge-description li {
    margin: 6px 0;
    color: #cccccc;
}

.challenge-description blockquote {
    border-left: 4px solid #007acc;
    margin: 16px 0;
    padding-left: 16px;
    color: #a0a0a0;
    font-style: italic;
}



/* Code Editor Sections */
.compiler-editor-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #474747;
}

.editor-header {
    background: #2d2d30;
    border-bottom: 1px solid #474747;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}

.file-name {
    font-size: 13px;
    color: #cccccc;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #3c3c3c;
}

.action-btn {
    background: transparent;
    border: 1px solid #474747;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.action-btn:hover {
    background: #3c3c3c;
    border-color: #5a5a5a;
}

.action-btn.primary {
    background: #007acc;
    color: white;
    border-color: #007acc;
}

.action-btn.primary:hover {
    background: #005a9e;
    border-color: #005a9e;
}

.action-btn.run {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.action-btn.run:hover {
    background: #218838;
    border-color: #218838;
}

.code-editor {
    flex: 1;
    min-height: 250px;
    overflow: auto;
    background: #1e1e1e;
    position: relative;
}

.code-editor pre {
    margin: 0;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-editor code {
    color: #d4d4d4;
}

.code-input {
    width: 100%;
    height: 100%;
    padding: 16px;
    border: none;
    outline: none;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
}

.code-input::placeholder {
    color: #6a6a6a;
}

/* Line Numbers */
.code-editor {
    display: grid;
    grid-template-columns: 60px 1fr;
    position: relative;
}

.line-numbers {
    background: #252526;
    border-right: 1px solid #474747;
    padding: 16px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #858585;
    text-align: right;
    user-select: none;
    grid-column: 1;
}

.line-numbers-content {
    white-space: pre;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
    margin: 0;
}

.code-editor pre {
    margin: 0;
    padding: 16px 16px 16px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #1e1e1e;
    grid-column: 2;
}

.code-editor .code-input {
    margin: 0;
    padding: 16px 16px 16px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    outline: none;
    background: #1e1e1e;
    color: #d4d4d4;
    resize: none;
    grid-column: 2;
}

/* Compiler Container */
.compiler-container {
    height: 700px;
    background: #1e1e1e;
    border: none;
}

.compiler-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #1e1e1e;
}

/* VS Code Status Bar */
.vscode-statusbar {
    background: #007acc;
    height: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: #ffffff;
}

.statusbar-left,
.statusbar-right {
    display: flex;
    gap: 15px;
}

.statusbar-left .status-item,
.statusbar-right .status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

/* Custom Prism.js styling for VS Code theme */
.code-editor .token.keyword {
    color: #569cd6;
    font-weight: 600;
}

.code-editor .token.string {
    color: #ce9178;
}

.code-editor .token.comment {
    color: #6a9955;
    font-style: italic;
}

.code-editor .token.function {
    color: #dcdcaa;
}

.code-editor .token.class-name {
    color: #4ec9b0;
}

.code-editor .token.number {
    color: #b5cea8;
}

.code-editor .token.operator {
    color: #d4d4d4;
}

.code-editor .token.punctuation {
    color: #d4d4d4;
}

.code-editor .token.namespace {
    color: #4ec9b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vscode-sidebar {
        width: 200px;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .challenge-meta {
        flex-direction: column;
        gap: 5px;
    }
}

ul > li  > a {
    color: #ffffff;   
}