@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');

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

body {
    background: #000;
    color: #00ff00;
    font-family: 'IBM Plex Mono', monospace;
    overflow: hidden;
    height: 100vh;
}

.terminal {
    width: 100%;
    height: 100vh;
    background: #000;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #333;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #555;
}

.terminal-title {
    font-weight: 500;
}

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

.control {
    width: 16px;
    height: 16px;
    background: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}

.control:hover {
    background: #888;
}

.control.close:hover {
    background: #ff4444;
}

.terminal-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #000;
}

.boot-sequence {
    animation: fadeIn 0.5s ease-in;
}

.boot-line {
    margin-bottom: 8px;
    color: #00ff00;
    opacity: 0;
    animation: typeIn 0.8s ease-in forwards;
}

.boot-line:nth-child(1) { animation-delay: 0s; }
.boot-line:nth-child(2) { animation-delay: 0.8s; }
.boot-line:nth-child(3) { animation-delay: 1.6s; }
.boot-line:nth-child(4) { animation-delay: 2.4s; }

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

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

.dos-interface {
    animation: fadeIn 0.5s ease-in;
}

.prompt-line {
    margin-bottom: 16px;
    font-size: 16px;
}

.prompt {
    color: #ffff00;
    font-weight: bold;
}

.command {
    color: #00ffff;
    margin-left: 8px;
}

.user-info {
    border: 1px solid #00ff00;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(0, 255, 0, 0.1);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid #00ff00;
    background-size: cover;
    background-position: center;
    background-color: #003300;
}

.username {
    font-size: 18px;
    font-weight: bold;
    color: #ffff00;
}

.user-stats {
    font-size: 12px;
    color: #00ff00;
    margin-top: 4px;
}

.user-description {
    font-size: 14px;
    color: #aaffaa;
    border-left: 2px solid #00ff00;
    padding-left: 8px;
}

.directory-listing {
    margin-bottom: 16px;
    border: 1px solid #333;
    padding: 8px;
}

.dir-header {
    color: #ffff00;
    margin-bottom: 8px;
    font-weight: bold;
}

.dir-line {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 2px 0;
    font-size: 14px;
}

.dir-line.header {
    color: #ffff00;
    font-weight: bold;
    border-bottom: 1px solid #333;
    margin-bottom: 4px;
}

.navigation {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.nav-button {
    padding: 8px 16px;
    border: 1px solid #333;
    background: transparent;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.nav-button.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
}

.key {
    color: #ffff00;
    font-weight: bold;
}

.nav-button.active .key {
    color: #000;
}

.content-area {
    min-height: 200px;
    border: 1px solid #333;
    padding: 8px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
}

.loading {
    color: #ffff00;
    text-align: center;
    padding: 20px;
}

.item {
    padding: 8px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
}

.item:hover {
    background: rgba(0, 255, 0, 0.1);
}

.item-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 4px;
}

.item-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.item-description {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    max-height: 2.4em;
    overflow: hidden;
}

.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 4px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #555;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .terminal-content {
        padding: 8px;
    }
    
    .dir-line {
        grid-template-columns: 2fr 1fr;
        gap: 8px;
    }
    
    .dir-line .date,
    .dir-line .type {
        display: none;
    }
    
    .navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
    }
}

