/* Modern video page styling */
.video-page-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.video-hero-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-hero-section .p-4 {
    padding: 2rem !important;
}

/* Responsive video sizing for 50/50 layout */
@media (min-width: 992px) {
    .video-hero-section .ratio {
        max-height: 400px;
    }
}

@media (min-width: 1200px) {
    .video-hero-section .ratio {
        max-height: 450px;
    }
}

/* Mobile-first responsive adjustments */
@media (max-width: 991.98px) {
    .video-hero-section {
        margin-bottom: 1rem;
    }
    
    .video-hero-section .ratio {
        max-height: 300px;
    }
    
    .video-info-header {
        padding: 1.5rem;
    }
    
    .content-tabs {
        margin-top: 1rem;
    }
}

.video-info-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2rem;
}

.video-player-container {
    position: relative;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-actions-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    padding: 0 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    font-weight: 600;
    color: #6c757d;
    padding: 1rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    background: transparent;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
    border-color: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    padding: 2rem;
}

.analysis-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.analysis-card-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.analysis-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}

.analysis-card-title i {
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* .status-badge + .status-processing/success/failed absorbed into <bjj-status-pill> (ADR-0117). */

.technique-detection-item {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #6610f2;
    transition: all 0.2s ease;
}

.technique-detection-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.technique-detection-item.approved {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.technique-detection-item.rejected {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.confidence-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(135deg, #6610f2 0%, #7b1fa2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.transcript-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.transcript-segment {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transcript-segment:hover {
    background: rgba(13, 110, 253, 0.05);
}

.transcript-segment.current-segment {
    background: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-modern {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.btn-approve {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.btn-reject {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

.btn-secondary-modern {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-page-container {
        padding: 1rem 0;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Stack columns on mobile */
    .container-fluid .row {
        margin: 0;
    }
    
    /* Full width video on mobile */
    .video-hero-section .video-player-container {
        margin: 0;
    }
    
    /* Compact action bar on mobile */
    .video-actions-bar {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    /* Responsive tab content */
    .analysis-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .analysis-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Fix dropdown z-index issues */
.dropdown-menu {
    z-index: 1050 !important;
}

/* Technique highlight styling */
.technique-highlight {
    background-color: rgba(102, 16, 242, 0.1);
    border-bottom: 1px dashed #6610f2;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.technique-highlight:hover {
    background-color: rgba(102, 16, 242, 0.2);
}

.position-highlight {
    background-color: rgba(25, 135, 84, 0.1);
    border-bottom: 1px dashed #198754;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.position-highlight:hover {
    background-color: rgba(25, 135, 84, 0.2);
}

.mechanic-highlight {
    background-color: rgba(108, 117, 125, 0.1);
    border-bottom: 1px dashed #6c757d;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mechanic-highlight:hover {
    background-color: rgba(108, 117, 125, 0.2);
} 