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

body {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #000;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.terminal-window {
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #999;
}

.terminal-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #000;
    font-weight: normal;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-button {
    width: 16px;
    height: 16px;
    background: #e0e0e0;
    border: 1px solid #999;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
}

.control-button:hover {
    background: #d0d0d0;
}

.control-button.close {
    background: #e81123;
    color: #fff;
    border-color: #c0001f;
}

.control-button.close:hover {
    background: #f1707a;
}

.terminal-body {
    background: #000;
    color: #c0c0c0;
    padding: 20px;
    padding-bottom: 60px;
    flex: 1;
    overflow-y: auto;
    font-size: 16px;
    position: relative;
}

#output {
    margin-bottom: 10px;
}

.output-line {
    margin: 5px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command-echo {
    color: #fff;
}

.error {
    color: #ff6b6b;
}

.success {
    color: #51cf66;
}

.info {
    color: #74c0fc;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    caret-color: #fff;
}

#command-input::selection {
    background: #fff;
    color: #000;
}

/* Custom scrollbar for Windows look */
.terminal-body::-webkit-scrollbar {
    width: 16px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #555;
    border: 2px solid #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Blinking cursor effect */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.cursor-blink::after {
    content: '_';
    animation: blink 1s infinite;
}

/* Terminal footer with time */
.terminal-footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 8px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: #c0c0c0;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-label {
    color: #74c0fc;
    font-weight: bold;
}

.time-value {
    color: #51cf66;
    font-weight: bold;
    font-family: 'Consolas', 'Courier New', monospace;
}
