/* Video Joiner Tool Styles */

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

.video-preview {
    width: 100%;
    height: auto;
    max-height: 450px;
    display: block;
    background: #000;
}

[data-bs-theme="dark"] .video-preview-wrapper {
    background: #000;
}

/* Videos List Styling */
.videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bs-secondary-bg-subtle);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s ease;
}

.video-item:hover {
    background: var(--bs-tertiary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.video-item.drag-over-top {
    border-top: 3px solid #052c65;
}

.video-item.drag-over-bottom {
    border-bottom: 3px solid #052c65;
}

.video-drag-handle {
    cursor: grab;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.video-item:hover .video-drag-handle {
    opacity: 1;
}

.video-drag-handle:active {
    cursor: grabbing;
}

.video-index {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #052c65;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--bs-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.video-meta .badge {
    font-size: 11px;
    font-weight: 500;
}

/* Dark mode for videos list */
[data-bs-theme="dark"] .video-item {
    background: rgba(30, 34, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .video-item:hover {
    background: rgba(30, 34, 42, 0.8);
}

[data-bs-theme="dark"] .video-index {
    background: #a855f7;
}

[data-bs-theme="dark"] .video-item.drag-over-top {
    border-top-color: #a855f7;
}

[data-bs-theme="dark"] .video-item.drag-over-bottom {
    border-bottom-color: #a855f7;
}

/* Card styling */
.card {
    border-radius: 8px;
    border: 1px dotted var(--bs-dark-bg-subtle);
    background: var(--bs-light-border-subtle);
}

.card-header {
    background: var(--bs-secondary-bg-subtle);
    border-bottom: 1px dotted var(--bs-dark-bg-subtle);
}

.card-header h5 {
    margin: 0;
}

[data-bs-theme="dark"] .card {
    background-color: rgba(30, 34, 42, 0.6);
    border-color: rgba(168, 85, 247, 0.3);
}

[data-bs-theme="dark"] .card-header {
    background: rgba(30, 34, 42, 0.8);
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

/* Prevent text selection */
.form-label {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.form-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Progress Bar */
#progressContainer {
    margin-top: 20px;
}

.progress {
    height: 30px;
    font-size: 14px;
}

/* Filter SVG for dark mode */
.filter-svg {
    filter: none;
}

[data-bs-theme="dark"] .filter-svg {
    filter: invert(1) brightness(0.8);
}

/* Button icons */
.btn img {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-preview {
        max-height: 300px;
    }

    .video-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .video-index {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .video-name {
        font-size: 13px;
    }
}
