/* Custom Stylesheet for Lenell Shorts Video Studio */

/* Workspace Grid Layout */
.editor-grid {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 2rem;
    align-items: start;
    text-align: left;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .editor-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Glassmorphism Panel Template */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Video Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.preview-frame-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-aspect-ratio-box {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Center crop source video */
    background: #000;
    display: block;
}

/* Drag Overlay for repositioning text layers */
.drag-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: auto;
    cursor: default;
}

/* Draggable Text layer indicator boundary */
.canvas-text-helper {
    position: absolute;
    border: 1.5px dashed var(--primary);
    background: rgba(129, 140, 248, 0.15);
    cursor: move;
    user-select: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
}

.canvas-text-helper.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Empty Video State Placeholder */
.canvas-placeholder {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 15;
    transition: opacity 0.3s ease;
}

.placeholder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.placeholder-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.placeholder-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.placeholder-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.shortcut-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
}

/* Playback Control Box */
.player-controls-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.time-label {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.timeline-bar-container {
    position: relative;
    flex-grow: 1;
    height: 24px;
    display: flex;
    align-items: center;
}

#timeline-scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

#timeline-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: transform 0.1s;
}

#timeline-scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.timeline-trim-highlight {
    position: absolute;
    height: 6px;
    background: rgba(56, 189, 248, 0.3);
    border-radius: 99px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.icon-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.loop-status-badge {
    background: rgba(244, 114, 182, 0.1);
    color: var(--accent);
    border: 1px solid rgba(244, 114, 182, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Section & Tab Navigation */
.sidebar-tabs-container {
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.tab-headers::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-header {
    flex: 1;
    min-width: 75px;
    padding: 1rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.tab-header:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.tab-header.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(129, 140, 248, 0.05);
}

.tab-body {
    flex-grow: 1;
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: paneFadeIn 0.3s ease forwards;
}

@keyframes paneFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.pane-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: -0.75rem;
}

/* Upload Interface Components */
.upload-box {
    width: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(129, 140, 248, 0.04);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.upload-icon {
    font-size: 2rem;
}

.upload-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.small-upload {
    padding: 0.75rem;
    border-style: solid;
    border-width: 1px;
}

.small-label {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.divider-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    margin: 0.5rem 0;
}

.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.generator-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #818cf8);
    border-color: #f472b6;
    padding: 0.75rem 1.25rem !important;
}

.media-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    margin-top: -0.25rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

/* Audio configuration listing */
.file-info-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: var(--text-main);
}

.small-text-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: underline;
}

/* Sliders configurations */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.slider-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.slider-value-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-value-row input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider-value-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.slider-value-row span {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    min-width: 35px;
    text-align: right;
}

/* Tab 2: Trimming inputs & sliders */
.trim-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trim-number-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.trim-number-box label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trim-number-box input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
}

.trim-number-box input[type="number"]:focus {
    border-color: var(--primary);
}

.trim-duration-badge {
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Double Slider System for Trimming */
.double-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
}

.double-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    z-index: 1;
}

.double-slider-range {
    position: absolute;
    height: 6px;
    background: var(--primary);
    border-radius: 99px;
    z-index: 2;
}

.double-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
    outline: none;
    margin: 0;
}

.double-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-main);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.double-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Tab 3: Text Layers list UI */
.pane-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.small-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
}

.text-layers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.text-layers-list::-webkit-scrollbar {
    width: 4px;
}

.text-layers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

.no-layers-message {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2rem 1rem;
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
}

.text-layer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.text-layer-card:hover, .text-layer-card.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.layer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layer-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-delete-layer {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-delete-layer:hover {
    opacity: 1;
}

.layer-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.layer-input-wrapper input[type="text"] {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
}

.layer-input-wrapper input[type="text"]:focus {
    border-color: var(--primary);
}

.layer-styles-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.5rem;
}

.layer-style-select, .layer-style-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 3px 6px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.8rem;
    outline: none;
}

.layer-timing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.layer-timing-row label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.layer-timing-row input[type="number"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 3px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.75rem;
    outline: none;
    text-align: center;
}

/* Tab 4: Filters Grid UI */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.filter-chip-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    color: var(--text-muted);
}

.filter-chip-btn span {
    font-size: 0.7rem;
    font-weight: 500;
}

.filter-chip-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.filter-chip-btn.active {
    border-color: var(--primary);
    background: rgba(129, 140, 248, 0.08);
    color: var(--primary);
}

.filter-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: linear-gradient(135deg, #38bdf8, #f472b6);
}

/* CSS Filters simulation for thumbnails */
.grayscale-preview { filter: grayscale(100%); }
.sepia-preview { filter: sepia(100%); }
.cyberpunk-preview { filter: hue-rotate(180deg) saturate(150%) contrast(120%); }
.invert-preview { filter: invert(100%); }
.warm-preview { filter: sepia(30%) saturate(140%) hue-rotate(-20deg); }
.cool-preview { filter: saturate(110%) hue-rotate(120deg) brightness(95%); }
.vintage-preview { filter: contrast(85%) brightness(95%) sepia(20%); }

/* Tab 5: Exporting status widgets */
.render-btn {
    width: 100%;
    padding: 0.8rem 1.5rem !important;
    font-size: 1.05rem !important;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #34d399;
}

.render-btn:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.render-progress-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-status-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #38bdf8, #10b981);
    border-radius: 99px;
    transition: width 0.1s linear;
}

.progress-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.render-success-container {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #34d399;
}

.success-icon {
    font-size: 1.25rem;
}

.success-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.success-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.exported-preview-box {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 9/16;
    margin: 0.5rem auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    overflow: hidden;
}

#exported-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-btn {
    width: 100%;
    padding: 0.75rem 1.25rem !important;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    border-color: #7dd3fc;
}

/* Margin helpers */
.mt-1 { margin-top: 0.75rem; }

/* ==========================================================================
 * ADDITIONS: ASPECT RATIO, SPEED, STICKERS, STEPPERS, QUALITY
 * ========================================================================== */

/* Aspect Ratio Selector */
.aspect-ratio-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.aspect-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    padding: 0.4rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
}

.aspect-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.aspect-btn.active {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border-color: #7dd3fc;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Dynamic Aspect Ratio Box States */
.preview-aspect-ratio-box.aspect-1-1 {
    aspect-ratio: 1 / 1 !important;
    max-width: 320px !important;
}
.preview-aspect-ratio-box.aspect-16-9 {
    aspect-ratio: 16 / 9 !important;
    max-width: 380px !important;
}

/* Speed Control Group */
.speed-control-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.speed-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.speed-btn:hover {
    color: var(--text-main);
}

.speed-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Quick Stickers Palette */
.sticker-palette {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
}

.sticker-palette-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sticker-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
}

.sticker-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1.4rem;
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.sticker-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* Precision Trim Steppers */
.trim-stepper-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
}

.trim-stepper-row input {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.trim-step-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.55rem 0.45rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.trim-step-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: var(--primary);
}

/* Export Quality Selector */
.export-quality-container {
    margin-bottom: 1.25rem;
}

.quality-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.quality-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quality-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.2s ease;
}

.quality-btn strong {
    font-size: 0.95rem;
}

.quality-btn span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quality-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.quality-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.2));
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.quality-btn.active strong {
    color: #38bdf8;
}

