/* Custom styles for ViGenAiR */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Horizontal scroll for segments */
#segmentsStrip {
    scrollbar-width: thin;
}

#segmentsStrip::-webkit-scrollbar {
    height: 6px;
}

/* Video player styling */
video {
    background: #000;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #6366f1;
}

/* Focus ring */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Segment thumbnail hover effect */
.segment-thumb:hover .w-24 {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.segment-thumb .w-24 {
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Job card hover effect */
.job-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
    transform: translateY(-2px);
}

/* Modal animation */
#uploadModal {
    transition: opacity 0.2s;
}

#uploadModal > div {
    transition: transform 0.2s;
}

#uploadModal.hidden > div {
    transform: scale(0.95);
}

/* Toast animation */
#toastContainer > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Variant tab active state */
.variant-tab.active {
    background: #6366f1;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .segment-thumb .w-24 {
        width: 5rem;
    }

    .segment-thumb .h-16 {
        height: 3.5rem;
    }
}

/* Print styles */
@media print {
    header, #uploadModal, #toastContainer {
        display: none !important;
    }
}
