.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

#skeleton-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.video-container.drawing #skeleton-canvas {
    pointer-events: auto;
}

.controls {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bs-dark);
    border-radius: 0.5rem;
}

.btn-tool {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-tool.active {
    background-color: var(--bs-primary);
    color: white;
}

.video-player {
    width: 100%;
    max-width: 100%;
}

.sync-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 100;
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

.sync-indicator.synced {
    background-color: var(--bs-success);
}

.sync-indicator.out-of-sync {
    background-color: var(--bs-warning);
}

.video-container, .video-player {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

.row > [class*='col-'] {
    padding-bottom: 0;
}

.video-container.active-control {
    outline: 2px solid var(--bs-primary);
    border-radius: 4px;
}

.btn-tool.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.controls {
    position: relative;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bs-dark);
    border-radius: 4px;
}

#control-indicator {
    color: var(--bs-info);
    font-size: 0.9rem;
}

#video-control-target {
    max-width: 200px;
    margin-bottom: 1rem;
}


.video-container {
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    background-color: var(--bs-dark);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--bs-dark);
}



.video-comparison-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.comparison-divider {
    width: 2px;
    background-color: var(--bs-secondary);
    margin: 0 1rem;
    align-self: stretch;
}

#delete-reference-video {
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--bs-danger-dark);
    border-color: var(--bs-danger-dark);
}
.table-responsive {
    margin: 0;
}

.table {
    margin-bottom: 0;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.card-header {
    background-color: var(--bs-light);
    border-bottom: 1px solid var(--bs-border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bs-light);
}

.drop-zone {
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--bs-light);
}

.drop-zone.drag-highlight {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.drop-zone-text {
    margin-bottom: 1rem;
}

.drop-zone-text i {
    font-size: 2rem;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}

.drop-zone-text p {
    margin: 0;
    color: var(--bs-secondary);
}

.drop-zone .input-group {
    justify-content: center;
}
.upload-progress {
    margin-top: 1rem;
    text-align: center;
}

.progress {
    background-color: var(--bs-dark);
    height: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: var(--bs-primary);
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--bs-primary);
}

.d-none {
    display: none !important;
}

.alert {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.alert-danger {
    background-color: var(--bs-danger);
    color: white;
}

.mt-2 {
    margin-top: 0.5rem !important;
}
.select-all-videos, .video-select {
    cursor: pointer;
}

#bulk-delete-main, #bulk-delete-reference {
    transition: opacity 0.3s ease;
}

.table td, .table th {
    vertical-align: middle;
}

/* Enhanced Modal Styles with Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background-color: var(--bs-gray-800);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: modalContentFade 0.3s ease-out;
}

@keyframes modalContentFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bs-gray-800);
    border-radius: 8px 8px 0 0;
    padding: 1.25rem;
}

.modal-header .modal-title {
    color: var(--bs-light);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--bs-light);
}

.modal-body .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    background-color: var(--bs-gray-800);
    border-radius: 0 0 8px 8px;
}

/* Enhanced Table Styles */
.table {
    background-color: var(--bs-white);
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--bs-light);
    border-bottom: 2px solid var(--bs-border-color);
    padding: 1rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bs-border-color);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Video Management Enhancements */
.video-select, .select-all-videos {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-delete {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.btn-delete:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.25rem;
    background-color: transparent;
    border-bottom: 1px solid var(--bs-border-color);
}

.card-header h5 {
    margin: 0;
    color: var(--bs-light);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}
/* Collapsible Section Styles */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    margin: 0;
    transition: background-color 0.2s ease;
    border: none;
    outline: none;
    position: relative;
}

.collapsible-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}



.collapse-icon {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .collapse-icon {
    transform: rotate(0deg);
}

.collapse {
    transition: height 0.3s ease-out;
}

/* Upload Section Collapsible */
.upload-section {
    transition: all 0.3s ease;
}

.upload-section.collapsed {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Responsive Layout Styles */
@media (max-width: 768px) {
    .video-container {
        margin-bottom: 2rem;
    }
    
    .video-player {
        max-height: 40vh;
        object-fit: contain;
    }
    
    .controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        border-radius: 0;
        padding: 0.75rem;
        background-color: rgba(33, 37, 41, 0.95);
    }
    
    .btn-tool {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .sync-indicator {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .drop-zone {
        padding: 1rem;
    }
    
    .drop-zone-text i {
        font-size: 1.5rem;
    }
    
    .drop-zone-text p {
        font-size: 0.9rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    main.container {
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .btn-tool {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table-responsive {
        margin: 0 -0.75rem;
    }
    
    .drop-zone {
        margin: 0 -0.75rem;
        border-radius: 0;
    }
    
    .video-container {
        margin: 0 -0.75rem;
        border-radius: 0;
    }
}