/* Video Effects Styles */

/* Custom Frame Rate Input Styles */
.custom-framerate-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.custom-framerate-container:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-primary-light);
}

/* Use generic input-wrapper and number-input from components.css */

.input-suffix {
    /* position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); */
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
}

.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-primary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.input-help i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.input-help span {
    font-weight: 500;
}

/* Animation for showing/hiding custom input */
.custom-framerate-container {
    animation: slideInFade 0.3s ease-out;
}

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

/* Fade Effects Specific Styles */
/* Use generic choice-grid and choice-btn from components.css */

.duration-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.duration-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.duration-preset {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.duration-preset:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.duration-preset.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.preview-display {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.fade-preview {
    text-align: center;
}

.preview-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1rem;
    min-height: 60px;
}

.timeline-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
    position: relative;
}

.fade-in-segment {
    background: linear-gradient(90deg, #000 0%, var(--primary-color) 100%);
    color: white;
}

.fade-out-segment {
    background: linear-gradient(90deg, var(--primary-color) 0%, #000 100%);
    color: white;
}

.main-segment {
    background: var(--primary-color);
    color: white;
    flex: 1;
    min-width: 120px;
}

.segment-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.segment-duration {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Color input styling */
.color-input {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.color-input:hover {
    border-color: var(--primary-color);
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Loop Video Specific Styles */
.loop-preview {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);  
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.loop-timeline {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.loop-timeline .timeline-segment {
    min-width: 120px;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.loop-timeline .original-segment {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loop-timeline .repeat-segment {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.loop-timeline .segment-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.loop-timeline .segment-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.loop-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-primary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.info-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Duration Input Styles */
/* Use generic input-wrapper, number-input, and preset-btn from components.css */ 