/**
 * Course Admin Styles
 *
 * @package Fluent_Community_Bunny_Stream
 */

/* Lesson Video Field */
.fcbs-lesson-video-field {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fcbs-lesson-video-field > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px;
}

/* Upload Area */
.fcbs-lesson-upload-area {
    padding: 40px 20px;
    text-align: center;
    background: #f6f7f7;
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fcbs-lesson-upload-area:hover {
    border-color: #007cba;
    background: #f0f6fc;
}

.fcbs-lesson-upload-area .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

.fcbs-lesson-upload-area .button-primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fcbs-lesson-upload-area .description {
    margin-top: 12px;
    color: #646970;
    font-size: 13px;
}

/* Video Preview */
.fcbs-lesson-video-preview {
    background: #f6f7f7;
    border-radius: 6px;
    overflow: hidden;
}

.fcbs-preview-embed {
    position: relative;
    padding-top: 56.25%;
    background: #1d2327;
}

.fcbs-preview-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fcbs-preview-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #1d2327;
}

.fcbs-preview-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcbs-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.fcbs-preview-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #ddd;
}

.fcbs-preview-actions .button {
    min-width: 100px;
}

/* Upload Progress */
.fcbs-lesson-upload-progress {
    padding: 40px 20px;
    text-align: center;
    background: #f6f7f7;
    border-radius: 6px;
}

.fcbs-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 12px;
    margin: 0 auto 15px;
    background: #dcdcde;
    border-radius: 6px;
    overflow: hidden;
}

.fcbs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.fcbs-progress-text {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

.fcbs-cancel-upload {
    min-width: 80px;
}

/* Processing Spinner */
.fcbs-processing-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid #dcdcde;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: fcbs-admin-spin 1s linear infinite;
}

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

/* Responsive */
@media screen and (max-width: 782px) {
    .fcbs-lesson-video-field {
        padding: 15px;
    }

    .fcbs-lesson-upload-area {
        padding: 30px 15px;
    }

    .fcbs-preview-actions {
        flex-direction: column;
    }

    .fcbs-preview-actions .button {
        width: 100%;
    }
}
