/* Root Variables */
:root {
    --window-bg: #1a1a1a;
    --tab-bg: #2d2d2d;
    --tab-active: #333333;
    --border-color: #444444;
    --text-color: #ffffff;
    --name-color: #7211bc;
    --code-bg: #2d2d2d;
}

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

/* Base Styles */
body {
    background-color: #2b2b2b;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Terminal Window */
.terminal-window {
    width: 90%;
    height: 80vh;
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Tab Navigation */
.tab-bar {
    display: flex;
    background-color: var(--tab-bg);
    padding: 8px 8px 0 8px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 8px 16px;
    background-color: var(--tab-bg);
    color: var(--text-color);
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

.tab.active {
    background-color: var(--tab-active);
}

/* Terminal Content */
.terminal-content {
    padding: 16px;
    color: var(--text-color);
    height: calc(100% - 45px);
    overflow-y: auto;
}

/* Prompt Styles */
.prompt {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.prompt-symbol {
    color: #0f0;
}

/* Code Blocks */
pre {
    background-color: var(--code-bg);
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

code {
    font-family: 'Consolas', monospace;
}

/* Links */
a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Profile Styles */
.name {
    color: var(--name-color);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-image.show {
    opacity: 1;
    transform: scale(1);
}

/* Output Styles */
.output {
    margin: 10px 0;
    line-height: 1.5;
}

.output img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Animations */
.typing {
    border-right: 2px solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 1s steps(30, end) forwards;
}

.waiting {
    animation: blink 1s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--text-color) }
}