/* ============================================================================
   ET DUCKY REMOTE DESKTOP VIEWER STYLES
   ============================================================================ */

/* Fullscreen modal overlay */
.rdp-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.rdp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    border-bottom: 1px solid #2d2d44;
    padding: 6px 12px;
    height: 44px;
    flex-shrink: 0;
    user-select: none;
}

.rdp-toolbar-left,
.rdp-toolbar-center,
.rdp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rdp-toolbar-left {
    flex: 1;
}

.rdp-toolbar-right {
    flex: 1;
    justify-content: flex-end;
}

/* Status indicator */
.rdp-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #a0a0b8;
}

.rdp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.rdp-status-dot.rdp-status-connecting {
    background: #f59e0b;
    animation: rdp-pulse 1.5s ease-in-out infinite;
}

.rdp-status-dot.rdp-status-connected {
    background: #10b981;
}

.rdp-status-dot.rdp-status-disconnected {
    background: #ef4444;
}

.rdp-status-dot.rdp-status-error {
    background: #ef4444;
}

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

.rdp-agent-name {
    font-size: 0.85rem;
    color: #d1d5db;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stats display */
.rdp-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Select dropdowns */
.rdp-select {
    background: #2d2d44;
    color: #d1d5db;
    border: 1px solid #3d3d54;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
}

.rdp-select:hover {
    border-color: #5b5b7a;
}

.rdp-select:focus {
    border-color: #3b82f6;
}

/* Toolbar buttons */
.rdp-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #2d2d44;
    color: #d1d5db;
    border: 1px solid #3d3d54;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.rdp-btn:hover {
    background: #3d3d54;
    border-color: #5b5b7a;
}

.rdp-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.rdp-btn-danger {
    border-color: #7f1d1d;
    color: #fca5a5;
}

.rdp-btn-danger:hover {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fff;
}

/* Canvas container */
.rdp-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

#rdp-canvas {
    outline: none;
    image-rendering: auto;
}

/* Connection overlay */
.rdp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
}

.rdp-overlay-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2d2d44;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: rdp-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes rdp-spin {
    to { transform: rotate(360deg); }
}

.rdp-overlay-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Reconnect prompt (used when connection drops) */
.rdp-reconnect-prompt {
    text-align: center;
}

.rdp-reconnect-prompt button {
    margin-top: 12px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

.rdp-reconnect-prompt button:hover {
    background: #2563eb;
}
