* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'JetBrains Mono', monospace;
    padding: 10px; /* lebih kecil di mobile */
}

.terminal {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: #0a0a0f;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #333;
}

.terminal-header {
    background: #16162a;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #2a2a3d;
}

.buttons {
    display: flex;
    gap: 6px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn.close { background: #ff5f57; }
.btn.minimize { background: #febc2e; }
.btn.maximize { background: #28c840; }

.title {
    color: #aaa;
    font-size: 0.75rem;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.ascii-banner {
    font-size: 0.45rem;
    line-height: 1.2;
    color: #00ffc3;
    margin-bottom: 10px;
}

.line {
    margin-bottom: 4px;
}

.command .prompt {
    color: #00ffc3;
    font-weight: 500;
}

.prompt {
    color: #00ffc3;
    margin-right: 8px;
}

.highlight {
    color: #ffb86c;
    font-weight: bold;
}

.cmd-highlight {
    color: #8be9fd;
    font-weight: bold;
}

.error {
    color: #ff5555;
}

.url-hint {
    color: #6272a4;
    font-size: 0.75rem;
}

a {
    color: #bd93f9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.input-line {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #2a2a3d;
    background: #0d0d1a;
}

#cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

#cmd-input::placeholder {
    color: #555;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0f;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

/* ========== Mobile Optimization ========== */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    .terminal {
        height: 95vh; /* lebih tinggi di HP */
        border-radius: 0;
        max-width: 100%;
    }
    .terminal-body {
        font-size: 0.8rem;
        padding: 10px;
    }
    .ascii-banner {
        font-size: 0.35rem; /* perkecil ASCII biar muat */
    }
    #cmd-input {
        font-size: 0.85rem;
    }
}