/* Remote Desktop Component Styles */

#remote-desktop {
    left: 260px; /* Offset from remote desktop icon */
    width: 520px;
    height: 560px;
    z-index: 95;
}

/* Connection 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-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);
}

.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);
}

.rd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#rd-connect-btn {
    background: linear-gradient(135deg, #0078D7, #00BCF2);
}

#rd-disconnect-btn {
    background: linear-gradient(135deg, #e52e00, #ff6b35);
    display: none;
}

/* 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);
}

/* Recent Connections */
.rd-recent-section {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.rd-recent-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-empty-recent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.rd-empty-recent .material-icons {
    font-size: 32px;
}

.rd-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-bottom: 4px;
}

.rd-recent-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

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

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

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

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

.rd-recent-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.rd-recent-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rd-recent-connect:hover {
    background: var(--accent-cyan);
    transform: scale(1.1);
}

.rd-recent-connect .material-icons {
    font-size: 18px;
}

/* 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;
}

/* Scrollbar */
.rd-recent-section::-webkit-scrollbar {
    width: 6px;
}

.rd-recent-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
