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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧边栏样式 */
.sidebar {
    width: 300px;
    background-color: #2d2d30;
    border-right: 1px solid #3e3e42;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    background-color: #3c3c3c;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #007acc;
}

.add-btn {
    width: 36px;
    height: 36px;
    background-color: #007acc;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #005a9e;
}

.server-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.server-item {
    background-color: #3c3c3c;
    border: 1px solid #5a5a5a;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.server-item:hover {
    background-color: #454545;
    border-color: #007acc;
}

.server-item.selected {
    background-color: #094771;
    border-color: #007acc;
}

.server-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.server-address {
    font-size: 12px;
    color: #cccccc;
}

.server-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
}

.server-action-btn {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
}

.server-action-btn:hover {
    background-color: #5a5a5a;
    color: #ffffff;
}

.action-panel {
    padding: 15px;
    border-top: 1px solid #3e3e42;
    text-align: center;
    color: #cccccc;
    font-size: 14px;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
}

.welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.welcome h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #007acc;
}

.welcome p {
    font-size: 16px;
    color: #cccccc;
}

.terminal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#terminal {
    flex: 1;
    background-color: #0c0c0c;
    border-radius: 4px;
    padding: 10px;
}

.terminal-controls {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
}

.file-btn {
    background-color: #007acc;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.file-btn:hover {
    background-color: #005a9e;
}

.file-btn:disabled {
    background-color: #5a5a5a;
    cursor: not-allowed;
}

/* 对话框样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
}

.dialog-content h3 {
    margin-bottom: 20px;
    color: #007acc;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #cccccc;
}

.form-input {
    width: 100%;
    background-color: #3c3c3c;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #007acc;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #5a5a5a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn.primary {
    background-color: #007acc;
    border-color: #007acc;
    color: white;
}

.btn.primary:hover {
    background-color: #005a9e;
}

.btn:not(.primary) {
    background-color: #3c3c3c;
    color: #ffffff;
}

.btn:not(.primary):hover {
    background-color: #454545;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d30;
}

::-webkit-scrollbar-thumb {
    background: #5a5a5a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a;
}

/* 连接状态指示器 */
.connection-status {
    padding: 8px 15px;
    border-top: 1px solid #3e3e42;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #5a5a5a;
}

.status-indicator.connected {
    background-color: #4ec9b0;
}

.status-indicator.connecting {
    background-color: #dcdcaa;
    animation: pulse 1s infinite;
}

.status-indicator.disconnected {
    background-color: #f44747;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}