/* Remote Desktop Component Styles */

#remote-desktop {
    left: 200px;
    width: 520px;
    height: 500px;
    z-index: 95;
}

/* Server Control Section */
.rd-server-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rd-server-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.rd-server-icon {
    font-size: 28px;
    color: var(--accent-cyan);
}

.rd-server-details {
    display: flex;
    flex-direction: column;
}

.rd-server-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bg-white);
}

.rd-server-ports {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

/* Buttons */
.rd-btn-server {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    white-space: nowrap;
    flex-shrink: 0;
}

.rd-btn-server.rd-toggle-active {
    background: linear-gradient(135deg, #e52e00, #ff6b35);
}

.rd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    color: white;
}

.rd-btn:hover {
    transform: scale(1.03);
}

.rd-btn:active {
    transform: scale(0.98);
}

/* Connection/Launch Section */
.rd-connection-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.rd-connection-section h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rd-launch-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-launch-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

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

.rd-input-row input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rd-input-row input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
}

.rd-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Status Bar */
.rd-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.rd-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.rd-status-disconnected {
    background: rgba(255, 255, 255, 0.3);
}

.rd-status-connecting {
    background: #ffd200;
    box-shadow: 0 0 8px rgba(255, 210, 0, 0.6);
    animation: rd-pulse 1.2s ease-in-out infinite;
}

.rd-status-connected {
    background: #38ef7d;
    box-shadow: 0 0 8px rgba(56, 239, 125, 0.6);
}

.rd-status-error {
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

@keyframes rd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#rd-status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Quick Actions */
.rd-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--glass-border);
}

.rd-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rd-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

.rd-action-btn .material-icons {
    font-size: 16px;
}
