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

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    font-family: 'Courier New', monospace;
    color: #00ff00;
    min-height: 100vh;
    overflow: hidden;
}

.terminal-container {
    display: flex;
    height: 100vh;
    gap: 0;
    position: relative;
    z-index: 10;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(10, 14, 39, 0.95);
    border-right: 2px solid #00ff00;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    z-index: 15;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.sidebar-header h2 {
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff00;
}

.sidebar-content {
    padding: 20px 0;
}

.cmd-category {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.cmd-category h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #00ff55;
    opacity: 0.8;
}

.cmd-category ul {
    list-style: none;
}

.cmd-category li {
    margin: 5px 0;
}

.cmd-category a {
    color: #00ff00;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
    display: block;
    border-radius: 3px;
    transition: all 0.3s;
    cursor: pointer;
}

.cmd-category a:hover {
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px #00ff00;
    padding-left: 15px;
}

/* Terminal Main */
.terminal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff00;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 20;
}

.terminal-header {
    background: linear-gradient(90deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-bottom: 1px solid #00ff00;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.btn.close {
    background: #ff5f56;
}

.btn.close:hover {
    background: #ff7f75;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.minimize:hover {
    background: #ffd54d;
}

.btn.maximize {
    background: #27c93f;
}

.btn.maximize:hover {
    background: #47e95f;
}

.header-title {
    font-size: 12px;
    letter-spacing: 1px;
    margin-left: 10px;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 20, 10, 0.5) 100%);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.terminal-line {
    margin: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.prompt {
    color: #00ff55;
    white-space: nowrap;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff55;
}

.command {
    color: #00ff00;
    word-break: break-word;
    flex: 1;
}

.output {
    color: #0ff;
    white-space: pre-wrap;
    flex: 1;
}

.error {
    color: #ff0055;
    flex: 1;
}

.success {
    color: #00ff88;
    flex: 1;
}

.info {
    color: #00ffff;
    flex: 1;
}

.warning {
    color: #ffaa00;
    flex: 1;
}

.copyright {
    color: #00ff55;
    opacity: 0.7;
    flex: 1;
    font-size: 13px;
}

/* Scrollbar */
.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.05);
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.4);
}

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

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

.blink {
    animation: blink 1s infinite;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .terminal-main {
        margin: 10px;
    }
}

#binary-canvas {
    position: fixed;
    top: 0;
    left: 250px;
    width: calc(100% - 250px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
