/* Video Trimmer 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;
}

/* Professional Time Input Styling */
.time-input-group {
    position: relative;
}

.time-input-group .form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--bs-body-color);
}

.time-input {
    font-family: 'Courier New', monospace;
    font-size: 18px !important;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
}

.time-input:focus {
    border-color: #052c65 !important;
    box-shadow: 0 0 0 0.2rem rgba(5, 44, 101, 0.15) !important;
}

.input-group-lg .time-input {
    padding: 10px 14px;
}

.input-group-lg .btn {
    padding: 10px 16px;
}

/* Trim Settings Card */
.trim-settings-card {
    border: 1px dotted var(--bs-dark-bg-subtle) !important;
    box-shadow: none;
    background: var(--bs-light-border-subtle) !important;
}

.trim-settings-card .card-header {
    border-bottom: 1px dotted var(--bs-dark-bg-subtle) !important;
    border-radius: 8px 8px 0 0 !important;
    background: var(--bs-secondary-bg-subtle) !important;
    color: var(--bs-body-color) !important;
}

/* Dark mode */
[data-bs-theme="dark"] .time-input {
    background-color: rgba(20, 24, 32, 0.8);
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e1e5e9;
}

[data-bs-theme="dark"] .time-input:focus {
    background-color: rgba(20, 24, 32, 0.9);
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.15) !important;
}

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

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

/* Current Time Display */
#currentTimeDisplay {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #6c757d;
}

[data-bs-theme="dark"] #currentTimeDisplay {
    color: #adb5bd;
}

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

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

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

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

/* Alert styling in dark mode */
[data-bs-theme="dark"] .alert-info {
    background-color: #132a4a;
    border-color: #0d6efd;
    color: #9db5d0;
}

[data-bs-theme="dark"] .alert-info .filter-svg {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg);
}

/* Card styling */
.card {
    border-radius: 8px;
}

.card-header h5 {
    margin: 0;
}

/* Prevent text selection on labels and static elements */
.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;
}

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

.card-header h5 {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Form control cursor styles */
.form-control {
    cursor: text;
}

.form-control[readonly] {
    cursor: default;
}

.form-select {
    cursor: pointer;
}

input[type="file"] {
    cursor: pointer;
}

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

}

/* Professional Timeline Styling */
.timeline-container {
    background: var(--bs-light-border-subtle);
    border-radius: 8px;
    padding: 20px;
    border: 1px dotted var(--bs-dark-bg-subtle);
}

.timeline-track {
    position: relative;
    height: 10px;
    background: #dee2e6;
    border-radius: 5px;
    margin-bottom: 16px;
}

.timeline-range-highlight {
    position: absolute;
    top: 0;
    height: 10px;
    background: #052c65;
    border-radius: 5px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.timeline-slider {
    position: absolute;
    top: 0;
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.timeline-slider::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: grab;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    margin-top: -5px;
    background: #052c65;
}

.timeline-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.timeline-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: grab;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: #052c65;
}

.timeline-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.timeline-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: transparent;
}

.timeline-slider::-moz-range-track {
    width: 100%;
    height: 10px;
    background: transparent;
}

.start-slider {
    z-index: 3;
}

.end-slider {
    z-index: 2;
}

/* Timeline Labels */
.timeline-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    background: var(--bs-secondary-bg-subtle);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

.timeline-label-icon {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.timeline-label-time {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Dark mode for timeline */
[data-bs-theme="dark"] .timeline-container {
    background: rgba(30, 34, 42, 0.6);
    border-color: rgba(168, 85, 247, 0.3);
}

[data-bs-theme="dark"] .timeline-track {
    background: #495057;
}

[data-bs-theme="dark"] .timeline-range-highlight {
    background: #a855f7;
    opacity: 0.7;
}

[data-bs-theme="dark"] .timeline-slider::-webkit-slider-thumb {
    border-color: #212529;
    background: #a855f7;
}

[data-bs-theme="dark"] .timeline-slider::-moz-range-thumb {
    border-color: #212529;
    background: #a855f7;
}

[data-bs-theme="dark"] .timeline-label {
    background: rgba(30, 34, 42, 0.8);
    color: var(--dark-text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

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