/* Screen Recorder Tool Styles */

.screen-preview-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-preview {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.preview-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

/* Webcam Picture-in-Picture */
.webcam-pip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    border: 3px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.webcam-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recording Indicator */
.recording-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Video Preview */
.video-preview-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-preview {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .screen-preview-wrapper {
        min-height: 250px;
    }

    .webcam-pip {
        width: 120px;
        height: 90px;
        bottom: 10px;
        right: 10px;
        border-width: 2px;
    }

    .recording-indicator {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .recording-dot {
        width: 10px;
        height: 10px;
    }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .preview-placeholder {
    color: #aaa;
}

[data-bs-theme="dark"] .screen-preview-wrapper,
[data-bs-theme="dark"] .video-preview-wrapper {
    background: #1a1a1a;
}
