.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000080;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-title {
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0 #000;
    color: #ffffff;
}

.boot-subtitle {
    font-size: 1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.boot-progress-container {
    width: 280px;
    height: 22px;
    border: 2px solid #ffffff;
    background: #000;
    padding: 2px;
    margin-bottom: 20px;
}

.boot-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--win1-progress);
    transition: width 0.1s linear;
}

.boot-info {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 10px;
}

.terminal-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 820px;
    max-width: calc(100vw - 40px);
    height: 85vh;
    max-height: 700px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 120px rgba(240, 165, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, border-radius 0.2s;
    background: var(--terminal-bg);
    z-index: 10;
    min-width: 350px;
    min-height: 300px;
}

.terminal-wrapper.maximized {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.terminal-header {
    background: var(--header-bg);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    cursor: move;
    user-select: none;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    cursor: default;
}

.terminal-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
}

.terminal-dot:hover {
    filter: brightness(1.3);
    transform: scale(1.15);
}

.terminal-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 6px rgba(255, 95, 86, 0.4);
}

.terminal-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}

.terminal-dot.green {
    background: #27c93f;
    box-shadow: 0 0 6px rgba(39, 201, 63, 0.4);
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #8b949e;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: move;
}

.terminal-body {
    flex: 1;
    background: var(--terminal-bg);
    padding: 16px 18px;
    overflow-y: auto;
    cursor: text;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    scroll-behavior: smooth;
    position: relative;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.output-line {
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-all;
    animation: fadeInLine 0.15s ease-out;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.prompt {
    color: var(--prompt-color);
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 0.9rem;
    text-shadow: 0 0 6px rgba(240, 165, 0, 0.35);
}

.prompt-symbol {
    color: var(--cyan);
    margin-right: 6px;
}

#commandInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    caret-color: #f0a500;
    min-width: 20px;
}

#commandInput::placeholder {
    color: #3d444d;
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: #f0a500;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 2px;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.c-orange { color: #f0a500; }
.c-cyan { color: #ffb833; }
.c-yellow { color: #e6a800; }
.c-magenta { color: #cc8800; }
.c-red { color: #f85149; }
.c-dim { color: #6e7681; }
.c-bright { color: #f0f6fc; }
.c-green { color: #f0a500; }
.bold { font-weight: 700; }
.italic { font-style: italic; }

.ascii-art {
    color: #ffb833;
    font-size: 0.65rem;
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 184, 51, 0.5);
    margin-bottom: 8px;
}

.divider {
    color: #6e7681;
    letter-spacing: 2px;
    margin: 6px 0;
}

.cmd-table {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4px 16px;
    margin: 4px 0;
}

.cmd-table .cmd-name { color: #ffb833; }
.cmd-table .cmd-desc { color: #6e7681; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.skill-tag {
    background: #2a2110;
    color: #ffb833;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #4a3e1c;
    transition: all 0.2s;
}

.skill-tag:hover {
    border-color: #f0a500;
    background: #3d2e1a;
    box-shadow: 0 0 12px rgba(240, 165, 0, 0.25);
}

.project-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
    background: #0d1117;
    transition: all 0.2s;
}

.project-card:hover {
    border-color: #f0a500;
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.1);
}

.project-name { color: #e6a800; font-weight: 600; }
.project-desc { color: #6e7681; font-size: 0.82rem; margin-top: 2px; }
.project-tech { color: #cc8800; font-size: 0.75rem; margin-top: 4px; }

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg,
            transparent 40%,
            #6e7681 40%,
            #6e7681 42%,
            transparent 42%,
            transparent 58%,
            #6e7681 58%,
            #6e7681 60%,
            transparent 60%);
    z-index: 20;
    opacity: 0.7;
}

.terminal-wrapper.maximized .resize-handle {
    display: none;
}
