@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #1e1e1e;
    --bg-sidebar: #252526;
    --bg-activity: #333333;
    --bg-title: #3c3c3c;
    --border-color: #3e3e42;
    --accent-color: #007acc;
    --text-primary: #cccccc;
    --text-secondary: #858585;
    --line-number: #858585;
    --keyword: #569cd6;
    --string: #ce9178;
    --property: #9cdcfe;
    --comment: #6a9955;
    --number: #b5cea8;
    --operator: #d4d4d4;
    --function: #dcdcaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Layout */
.ide-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 22px); /* Minus status bar */
}

/* Activity Bar */
.activity-bar {
    width: 48px;
    background-color: var(--bg-activity);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-left: 2px solid transparent;
}

.activity-icon:hover {
    opacity: 1;
}

.activity-icon.active {
    opacity: 1;
    border-left-color: var(--text-primary);
}

.activity-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

.activity-icon.active svg {
    fill: var(--text-primary);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--bg-dark); /* Subtle separator */
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-tree {
    padding: 0;
    list-style: none;
}

.file-item {
    padding: 4px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
}

.file-item:hover {
    background-color: #2a2d2e;
}

.file-item.active {
    background-color: #37373d;
}

.file-icon {
    width: 16px;
    height: 16px;
}

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

.tabs-bar {
    background-color: var(--bg-sidebar); /* Or dark */
    display: flex;
    overflow-x: auto;
}

.tab {
    padding: 8px 15px;
    background-color: #2d2d2d;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-right: 1px solid var(--bg-dark);
    min-width: 120px;
}

.tab.active {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    border-top: 1px solid var(--accent-color);
}

.tab-close {
    margin-left: auto;
    font-size: 14px;
    opacity: 0;
}

.tab:hover .tab-close {
    opacity: 1;
}

.breadcrumbs {
    padding: 5px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid #2b2b2b; /* Very subtle */
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-container {
    flex: 1;
    padding: 10px 0;
    overflow: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
}

.line-numbers {
    padding: 0 20px 0 10px;
    text-align: right;
    color: var(--line-number);
    user-select: none;
    min-width: 50px;
}

.code-content {
    flex: 1;
    padding-right: 20px;
}

/* Syntax Highlighting */
.kwd { color: var(--keyword); }
.str { color: var(--string); }
.prop { color: var(--property); }
.num { color: var(--number); }
.com { color: var(--comment); }
.func { color: var(--function); }
.op { color: var(--operator); }

/* Status Bar */
.status-bar {
    height: 22px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    justify-content: space-between;
}

.status-left, .status-right {
    display: flex;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.status-item:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.code-line {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 0.05s; }
.code-line:nth-child(2) { animation-delay: 0.1s; }
.code-line:nth-child(3) { animation-delay: 0.15s; }
.code-line:nth-child(4) { animation-delay: 0.2s; }
.code-line:nth-child(5) { animation-delay: 0.25s; }
.code-line:nth-child(6) { animation-delay: 0.3s; }
.code-line:nth-child(7) { animation-delay: 0.35s; }
.code-line:nth-child(8) { animation-delay: 0.4s; }
.code-line:nth-child(9) { animation-delay: 0.45s; }
.code-line:nth-child(10) { animation-delay: 0.5s; }
.code-line:nth-child(11) { animation-delay: 0.55s; }
.code-line:nth-child(12) { animation-delay: 0.6s; }
.code-line:nth-child(13) { animation-delay: 0.65s; }
.code-line:nth-child(14) { animation-delay: 0.7s; }
.code-line:nth-child(15) { animation-delay: 0.75s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #424242;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f4f4f;
}
