/* Compressor Tool Specific Styles */

/* Header */
/* Old header styles - replaced by shared-nav.js Bootstrap navigation
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}
*/

/* Navbar styles for shared navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.navbar .container {
    max-width: 100%;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Social link styles for footer */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Badges - Professional styling */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
    margin: 0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.badge span:first-child {
    font-size: 1.1rem;
}

.badge.highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f7fa 100%);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Professional Trust Stats Section */
.trust-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 1.5rem;
    margin: 3rem 0;
}

.trust-badges-professional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-stat {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.trust-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.highlight-stat {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
}

.highlight-stat .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.3;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
    padding: 4rem 0;
    margin: 3rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Upload Area */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.upload-area {
    border: 3px dashed var(--primary);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 102, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 102, 204, 0.2));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.upload-area p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Quality Controls */
.quality-controls {
    margin-top: 2rem;
    display: none;
}

.quality-controls.active {
    display: block;
}

.quality-slider {
    margin: 2rem 0;
}

.quality-slider label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 5px;
    outline: none;
}

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

.quality-presets {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.preset-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.preset-btn:hover,
.preset-btn.active {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
}

/* Results Area */
.results-area {
    display: none;
    margin-top: 2rem;
}

.results-area.active {
    display: block;
}

.image-result {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.result-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.result-info h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.size-comparison {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.original-size {
    color: var(--danger);
}

.compressed-size {
    color: var(--success);
    font-weight: 600;
}

.savings {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-download,
.btn-remove {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-download {
    background: var(--success);
    color: white;
}

.btn-download:hover {
    background: #059669;
}

.btn-remove {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.batch-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

/* How It Works */
.how-it-works {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.step p {
    color: var(--gray-600);
}

/* Features Grid */
.features {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--gray-50);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.feature p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    margin: 4rem 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* SEO Content */
.seo-content {
    max-width: 900px;
    margin: 4rem auto;
    line-height: 1.8;
}

.seo-content h2 {
    color: var(--gray-900);
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
}

.seo-content h3 {
    color: var(--gray-900);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.35rem;
}

.seo-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.seo-content ul {
    margin: 1rem 0 1rem 2rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Footer */
/* Old footer styles - replaced by Bootstrap footer
footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}
*/

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* New Styles for Carousel and Comparison View */
.preview-section {
    display: none;
    /* Hidden by default */
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.preview-section.active {
    display: block;
}

.preview-carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 3rem;
}

.preview-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem;
    scroll-behavior: smooth;
    width: 100%;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.preview-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    color: var(--gray-600);
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

.carousel-card {
    min-width: 180px;
    max-width: 180px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-card.active {
    border-color: #f59e0b;
    /* highlight color */
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.carousel-card-header {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-remove-btn {
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
}

.carousel-remove-btn:hover {
    color: var(--danger);
}

.carousel-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.carousel-card-savings {
    position: absolute;
    bottom: 35px;
    /* above download button */
    right: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.carousel-card-download {
    width: 100%;
    border: none;
    background: white;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.carousel-card-download:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.download-all-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-900);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-all-btn:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-all-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.download-buttons-container {
    margin-bottom: 1.5rem;
}

/* Comparison View */
.comparison-view {
    border-top: 2px solid var(--gray-200);
    padding-top: 2rem;
}

.comparison-filename {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    word-break: break-word;
    padding: 0 0.5rem;
}

.comparison-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comparison-stat:first-child {
    text-align: left;
}

.comparison-stat:last-child {
    text-align: right;
}

.comparison-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.comparison-image-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comparison-images-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-image.original {
    z-index: 1;
}

.comparison-image.compressed {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--gray-400);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-700);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
}

/* Quality Control - Vertical Sidebar */
.quality-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    position: relative;
}

.quality-loading {
    display: none;
    margin-bottom: 0.75rem;
    text-align: center;
}

.quality-loading.active {
    display: block;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-300);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quality-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.quality-value-box {
    background: white;
    border: 2px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    min-width: 60px;
    text-align: center;
}

.quality-slider-vertical {
    position: relative;
    height: 300px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-track-vertical {
    position: absolute;
    width: 8px;
    height: 100%;
    background: linear-gradient(to top, #059669 0%, #d97706 50%, #dc2626 100%);
    border-radius: 4px;
}

input[type="range"].quality-range-vertical {

    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 100%;
    background: transparent;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

input[type="range"].quality-range-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"].quality-range-vertical::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quality-apply-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.quality-apply-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-main {
        grid-template-columns: 1fr;
    }

    .quality-sidebar {
        flex-direction: row;
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .quality-label {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .quality-value-box {
        order: 2;
    }

    .quality-slider-vertical {
        order: 3;
        height: 40px;
        width: 300px;
        flex-direction: row;
    }

    .quality-apply-btn {
        order: 4;
    }

    .quality-track-vertical {
        width: 100%;
        height: 8px;
        background: linear-gradient(to right, #dc2626 0%, #d97706 50%, #059669 100%);
    }

    input[type="range"].quality-range-vertical {

        writing-mode: initial;
        width: 100%;
        height: 8px;
    }
}

@media (max-width: 768px) {
    .preview-carousel-container {
        padding: 0 2.5rem;
    }

    .carousel-card {
        min-width: 150px;
        max-width: 150px;
    }

    .carousel-card-image {
        height: 100px;
    }

    .comparison-view {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .comparison-images-container {
        height: 300px;
        border-radius: 8px;
    }

    .comparison-stats {
        padding: 0.5rem 0.25rem;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .comparison-stat {
        text-align: center;
        width: 100%;
    }

    .comparison-filename {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
        margin-bottom: 0.5rem;
    }

    .quality-sidebar {
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }

    .quality-slider-vertical {
        width: 250px;
    }

    .download-all-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }

    .download-all-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .download-buttons-container {
        gap: 0.5rem !important;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {

    /* Better mobile container */
    .container {
        padding: 0.5rem !important;
    }

    .preview-section {
        padding: 0.5rem;
        margin-top: 1rem;
        border-radius: 8px;
    }

    .preview-carousel-container {
        padding: 0 1.5rem;
        margin-bottom: 1rem;
    }

    .carousel-card {
        min-width: 110px;
        max-width: 110px;
    }

    .carousel-card-image {
        height: 65px;
    }

    .carousel-card-header {
        padding: 0.4rem;
        font-size: 0.7rem;
    }

    .comparison-view {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .comparison-images-container {
        height: 200px;
        border-radius: 6px;
    }

    .comparison-handle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .comparison-stats {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.25rem;
        margin-bottom: 0.5rem;
    }

    .comparison-stat {
        text-align: center;
        width: 100%;
        line-height: 1.3;
    }

    .comparison-filename {
        font-size: 0.75rem;
        word-break: break-word;
        padding: 0.4rem 0.25rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .download-all-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        flex-direction: row;
        gap: 0.3rem;
        width: 48%;
        justify-content: center;
    }

    .download-all-btn span:first-child {
        font-size: 1rem;
    }

    .download-all-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .download-buttons-container {
        gap: 0.4rem !important;
        padding: 0 0.25rem;
        margin-bottom: 0.75rem;
    }

    .quality-sidebar {
        padding: 0.5rem;
        gap: 0.5rem;
        margin-top: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .quality-label {
        order: 1;
        width: 100%;
        text-align: center;
        font-size: 0.65rem;
    }

    .quality-value-box {
        order: 2;
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        min-width: 42px;
    }

    .quality-slider-vertical {
        order: 3;
        width: 160px;
        height: 35px;
    }

    .quality-apply-btn {
        order: 4;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        width: auto;
        min-width: 80px;
    }

    h1 {
        font-size: 1.25rem;
    }

}