:root {
    --bg-color: #101010;
    --card-color: #1a1a1a;
    --border-color: #2a2a2a;
    --text-primary: #e6e6e6;
    --text-secondary: #999999;
    --accent: #ffffff;
    --text-dim: #404040;
    --green: #3fca3f;
    --cyan: #00ffff;
    --yellow: #ffff00;
}

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

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding: 0;  /* Changed from 1rem to 0 */
    margin: 0;
    min-height: 100vh;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.terminal {
    /* Remove max-width and margin: 0 auto */
    padding: 0.5rem;  /* Small padding for just a bit of breathing room */
}

.prompt {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.prompt .user {
    color: var(--text-dim);
}

.prompt .host {
    color: var(--text-primary);
}

.prompt .cmd {
    color: var(--text-primary);
}

/* File tree structure */
.tree {
    font-family: inherit;
    white-space: nowrap;
}

/* Tree entries - use flexbox for alignment */
.entry {
    display: flex;
    align-items: center;
    padding: 0.1rem 0;
}

/* Directory entries */
.dir > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.1rem 0;
}

.dir > summary::-webkit-details-marker {
    display: none;
}

/* Indentation spacer */
.indent {
    display: inline-block;
}
.indent-0 { width: 0; }
.indent-1 { width: 1.7em; }
.indent-2 { width: 3.4em; }
.indent-3 { width: 5.1em; }
.indent-4 { width: 6.8em; }

/* Arrow indicators */
.arrow {
    color: var(--text-dim);
    display: inline-block;
    width: 1.2em;
    text-align: center;
}

.dir[open] > summary .arrow::before {
    content: '▾';
}

.dir:not([open]) > summary .arrow::before {
    content: '▸';
}

/* Permissions - fixed width */
.perms {
    color: var(--text-secondary);
    display: inline-block;
    width: 10em;
    margin-left: 0.5em;
}

/* Directory and file names */
.dirname {
    color: var(--text-secondary);
}

.filename {
    color: var(--text-primary);
}

/* Files */
.file a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.file a:hover .filename {
    text-decoration: underline;
}

/* Executable indicator */
.exec {
    color: var(--green);
}

/* Tree branches */
.branch::before {
    content: '';
    color: var(--text-dim);
    margin-right: 0.5em;
}

/* Cursor */
.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Remove default focus outlines */
summary:focus {
    outline: none;
}

/* Hover effect */
summary:hover .dirname {
    color: var(--text-primary);
}