/**
 * Screen Recorder Styles
 */

#screen-recorder-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screen-recorder-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.screen-recorder-controls button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#start-recording {
    background-color: #28a745;
    color: #fff;
}

#start-recording:hover:not(:disabled) {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#stop-recording {
    background-color: #dc3545;
    color: #fff;
}

#stop-recording:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.screen-recorder-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#recording-timer {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    font-family: 'Courier New', monospace;
    margin-left: auto;
}

#recording-status {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    color: #333;
    font-size: 14px;
    display: none;
}

#recording-status.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

#recording-status.success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

#recording-preview {
    margin-top: 20px;
    text-align: center;
}

#recording-preview video {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #000;
}

.screen-recorder-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    color: #004085;
}

.screen-recorder-info p {
    margin: 5px 0;
}

.screen-recorder-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    #screen-recorder-container {
        margin: 10px;
        padding: 15px;
    }

    .screen-recorder-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .screen-recorder-controls button {
        width: 100%;
        justify-content: center;
    }

    #recording-timer {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}

/* Loading state */
.screen-recorder-loading {
    text-align: center;
    padding: 20px;
}

.screen-recorder-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

