* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    background: #16213e;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #0f3460;
    flex-shrink: 0;
}
#header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #e94560;
    margin-right: 16px;
}
#header input {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #0f3460;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 13px;
    width: 140px;
}
#header input::placeholder { color: #666; }
#header button {
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#connect-btn {
    background: #e94560;
    color: white;
}
#connect-btn:hover { background: #c73e54; }
#connect-btn:disabled { background: #555; cursor: not-allowed; }
#disconnect-btn {
    background: #533483;
    color: white;
}
#disconnect-btn:hover { background: #6b44a0; }
#disconnect-btn:disabled { background: #333; cursor: not-allowed; }

#status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}
.status-disconnected { background: #4a1a1a; color: #f44336; }
.status-connecting { background: #3a3a1a; color: #ffc107; }
.status-connected { background: #1a472a; color: #4caf50; }

#canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
#rdp-screen {
    display: block;
    background: #000;
    outline: none;
}

#log-panel {
    background: #0d1117;
    border-top: 1px solid #0f3460;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
    flex-shrink: 0;
}
.log-entry { white-space: pre-wrap; word-break: break-all; }
.log-info { color: #8b949e; }
.log-success { color: #3fb950; }
.log-error { color: #f85149; }
.log-warn { color: #d29922; }
.log-time { color: #6e7681; margin-right: 6px; }

#fullscreen-btn {
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}
#fullscreen-btn:hover { background: #30363d; color: #e0e0e0; }

#file-transfer-panel {
    background: #16213e;
    border-top: 1px solid #0f3460;
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
#file-transfer-panel.visible { display: flex; }
.ft-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ft-header h3 {
    font-size: 14px;
    color: #e94560;
    margin: 0;
}
.ft-actions {
    display: flex;
    gap: 8px;
}
.ft-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #533483;
    color: white;
}
.ft-btn:hover { background: #6b44a0; }
.ft-btn:disabled { background: #555; cursor: not-allowed; }
.ft-btn.primary { background: #e94560; }
.ft-btn.primary:hover { background: #c73e54; }

#file-list {
    max-height: 150px;
    overflow-y: auto;
    background: #0d1117;
    border: 1px solid #0f3460;
    border-radius: 4px;
    padding: 8px;
}
.ft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #21262d;
    font-size: 12px;
}
.ft-item:last-child { border-bottom: none; }
.ft-item-name { flex: 1; color: #8b949e; }
.ft-item-size { color: #6e7681; margin: 0 12px; }
.ft-item-status { color: #3fb950; font-weight: 600; }
.ft-item-status.downloading { color: #ffc107; }
.ft-item-status.error { color: #f85149; }

.ft-drop-zone {
    border: 2px dashed #0f3460;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    color: #6e7681;
    font-size: 12px;
    transition: all 0.2s;
}
.ft-drop-zone.dragover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}
