/**
 * Computer View Styles
 * Agent computer view, timeline, and playback
 */

/* Computer View Floating Card */
.agent-computer-view {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 58vw;
    max-width: 1200px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slower);
    overflow: hidden;
}

.agent-computer-view.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.computer-view-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(135, 67, 225, 0.05), rgba(255, 255, 255, 0.9));
}

.computer-view-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.computer-view-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-600);
}

.computer-view-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.computer-view-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.computer-screen-container {
    flex: 1;
    position: relative;
    background: #000;
    margin: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.computer-screen {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(135, 67, 225, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screen-overlay.recording {
    opacity: 1;
    animation: recordingPulse 2s infinite;
}

/* Agent Activity Timeline */
.agent-timeline {
    height: 120px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
}

.timeline-controls {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playback-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.875rem;
}

.playback-btn:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.playback-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.timeline-scrubber {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.timeline-progress {
    height: 100%;
    background: var(--primary-500);
    border-radius: 2px;
    width: 30%;
    transition: width 0.3s ease;
}

.timeline-marker {
    position: absolute;
    top: -3px;
    width: 10px;
    height: 10px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: grab;
    transform: translateX(-50%);
    left: 30%;
}

.timeline-marker:active {
    cursor: grabbing;
}

.timeline-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.agent-actions-track {
    flex: 1;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-bubble {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-base);
}

.action-bubble:hover {
    background: var(--primary-100);
    border-color: var(--primary-500);
}

.action-bubble.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.action-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-computer-view {
        width: 95vw;
        height: 75vh;
    }
}
