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

:root {
    --gnome-bg: #300a24;
    --gnome-darker: #2c001e;
    --terminal-bg: #300a24;
    --terminal-text: #ffffff;
    --terminal-header: #2d2d2d;
    --prompt-color: #8ae234;
    --command-color: #ffffff;
    --output-color: #d3d7cf;
    --cursor-color: #ffffff;
    --button-close: #ff5f56;
    --button-minimize: #ffbd2e;
    --button-maximize: #27c93f;
}

body {
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, var(--gnome-darker) 0%, var(--gnome-bg) 100%);
    color: var(--terminal-text);
    line-height: 1.6;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
}

html {
    overflow: hidden;
    height: 100%;
}


.terminal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    padding: 2rem;
}

.terminal-window {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: linear-gradient(180deg, #454545 0%, #2d2d2d 100%);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1a;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.terminal-button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.terminal-button.close {
    background: linear-gradient(135deg, #ff5f56 0%, #e0443e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-button.minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #dea123 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-button.maximize {
    background: linear-gradient(135deg, #27c93f 0%, #1fa832 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.terminal-menu {
    width: 60px;
    text-align: right;
}

.menu-icon {
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
}

.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--terminal-text);
}

.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#terminal-content {
    margin-bottom: 1rem;
}

.output-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.command-line .prompt {
    color: var(--prompt-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.command-line .command {
    color: var(--command-color);
}

.output-text {
    color: var(--output-color);
    margin-left: 0;
}

.output-success {
    color: #8ae234;
}

.output-error {
    color: #ef2929;
}

.output-info {
    color: #729fcf;
}

.output-warning {
    color: #fce94f;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.input-line .prompt {
    color: var(--prompt-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--command-color);
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 1rem;
    caret-color: transparent;
}

.cursor {
    color: var(--cursor-color);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

/* Welcome message styling */
.welcome-art {
    color: #8ae234;
    font-weight: bold;
    margin-bottom: 1rem;
}

.welcome-text {
    color: var(--output-color);
    margin-bottom: 0.5rem;
}

.help-command {
    color: #729fcf;
    margin-bottom: 0.3rem;
}

.help-description {
    color: var(--output-color);
    margin-left: 2rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        padding: 0.5rem;
    }
    
    .terminal-window {
        height: 95vh;
        border-radius: 0;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .terminal-header {
        padding: 0.4rem 0.8rem;
    }
    
    .terminal-button {
        width: 11px;
        height: 11px;
    }
    
    .terminal-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        font-size: 0.85rem;
    }
    
    .terminal-title {
        font-size: 0.75rem;
    }
}
