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

body {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Lucida Console', monospace;
    min-height: 100vh;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #111;
    border-bottom: 1px solid #333;
}

#header h1 {
    font-size: 1.2em;
    color: #0f0;
    font-weight: normal;
}

#server-config {
    display: flex;
    gap: 10px;
}

#server-url {
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px 10px;
    border-radius: 0;
    width: 260px;
    font-family: inherit;
    font-size: 0.9em;
}

#server-url:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 5px #0f0;
}

#connect-btn {
    background: #000;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 15px;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
}

#connect-btn:hover {
    background: #0f0;
    color: #000;
}

#connect-btn.connected {
    border-color: #f00;
    color: #f00;
}

#connect-btn.connected:hover {
    background: #f00;
    color: #000;
}

#connect-btn.connecting {
    border-color: #ff0;
    color: #ff0;
}

#terminal-container {
    flex: 1;
    background: #000;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
    padding-bottom: 10px;
    font-size: 14px;
}

#terminal-input-line {
    display: flex;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid #333;
}

#prompt {
    color: #0f0;
    margin-right: 5px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    caret-color: #0f0;
}

/* 光标闪烁效果 */
#terminal-input:focus {
    animation: none;
}

/* 文本颜色 - 经典终端风格 */
.text-green { color: #0f0; }
.text-red { color: #f00; }
.text-yellow { color: #ff0; }
.text-blue { color: #0ff; }
.text-cyan { color: #0ff; }
.text-magenta { color: #f0f; }
.text-white { color: #fff; }
.text-gray { color: #888; }

/* 消息类型样式 - 经典终端配色 */
.msg-notice { color: #ff0; }
.msg-error { color: #f00; }
.msg-success { color: #0f0; }
.msg-info { color: #0ff; }
.msg-poker { 
    color: #fff; 
    font-weight: normal;
    margin: 0;
    padding: 0;
    display: block;
    white-space: pre;
    line-height: 1.2;
}
.msg-input { color: #888; }

/* 高亮输入区域 */
#terminal-input-line.highlight {
    background: rgba(0, 255, 0, 0.1);
}

/* 扑克牌样式 */
.poker-card {
    display: inline-block;
    color: #fff;
}

.poker-red {
    color: #f00;
}

.poker-black {
    color: #fff;
}

/* 滚动条样式 - 简约风格 */
#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: #000;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: #333;
}

#terminal-output::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 选中文本样式 */
::selection {
    background: #0f0;
    color: #000;
}

