:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --slider-progress: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.glass-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header {
    margin-bottom: 32px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    background: linear-gradient(to right, var(--primary), #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--gray);
    font-size: 14px;
}

.dropzone {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 32px;
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.3s;
    position: relative;
}

.dropzone.highlight {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

#upload {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}

.slider-container {
    position: relative;
    height: 24px;
}

#pixel-size {
    position: relative;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

#pixel-size::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    transform: translateY(-50%);
    overflow: hidden;
}

.slider-track::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--slider-progress);
    background: var(--primary);
    transition: width 0.2s;
}

#pixel-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-align: center;
    display: inline-block;
    min-width: 40px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: gray;
    font-family: 'Inter';
    -webkit-appearance: none;
    cursor: pointer;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    position: absolute;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* Video Controls */
#video-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#video-controls button {
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#video-controls button:hover {
    background: var(--primary-dark);
}

#video-controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#progress-bar {
    flex-grow: 1;
    min-width: 200px;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Frame Rate Controls */
#video-controls > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

#frame-rate {
    width: 100px;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

#frame-rate::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

#frame-rate-value {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.preview-container {
    margin-bottom: 24px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.preview-header h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}

.compare-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-controls span {
    font-size: 12px;
    color: var(--gray);
}

#compare {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--light), var(--primary));
    border-radius: 2px;
}

#compare::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.canvas-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: 
        linear-gradient(45deg, #1E293B 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, #1E293B 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, #1E293B 75%),
        linear-gradient(-45deg, transparent 75%, #1E293B 75%);
    background-size: 100px 100px;
}

canvas {
    display: block;
    width: 100%;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}

.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.processing-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.processing-overlay p {
    color: white;
    font-size: 14px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.processing-progress {
    width: 80%;
    max-width: 400px;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.processing-progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.actions {
    display: flex;
    justify-content: center;
}

.primary-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 768px) {
    .glass-container {
        padding: 24px;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    .dropzone {
        padding: 30px;
    }

    #video-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #progress-bar {
        width: 100%;
    }
	
	.file-size-warning {
    color: #f87171;
    font-size: 12px;
    margin-top: 8px;
}
	
	.seo-description {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 12px;
    color: var(--light);
    font-size: 15px;
    line-height: 1.6;
}

.seo-description h2 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    color: var(--light);
}

.seo-description ul {
    padding-left: 20px;
}

.seo-description li {
    margin-bottom: 8px;
}
	
	@media (max-width: 768px) {
}
	
	
	.how-it-works-box {
    font-size: 15px;
    line-height: 1.7;
}

.how-it-works-box h2 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.how-it-works-box ol {
    padding-left: 20px;
    margin: 0;
}

.how-it-works-box li {
    margin-bottom: 12px;
}
	
}