* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Aurora Background */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.aurora-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: aurora-flow 20s ease-in-out infinite;
}

.aurora-layer-1 {
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(64, 224, 208, 0.3) 25%, 
        rgba(138, 43, 226, 0.4) 50%, 
        rgba(255, 20, 147, 0.3) 75%, 
        transparent 100%);
    animation-delay: 0s;
    animation-duration: 25s;
}

.aurora-layer-2 {
    background: linear-gradient(-45deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.2) 30%, 
        rgba(255, 0, 255, 0.3) 60%, 
        rgba(0, 191, 255, 0.2) 90%, 
        transparent 100%);
    animation-delay: -8s;
    animation-duration: 30s;
}

.aurora-layer-3 {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(50, 205, 50, 0.2) 20%, 
        rgba(255, 105, 180, 0.3) 40%, 
        rgba(135, 206, 250, 0.2) 80%, 
        transparent 100%);
    animation-delay: -15s;
    animation-duration: 35s;
}

@keyframes aurora-flow {
    0%, 100% {
        transform: translateX(-100%) translateY(-50%) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-50%) translateY(-25%) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg) scale(1.1);
        opacity: 1;
    }
    75% {
        transform: translateX(50%) translateY(25%) rotate(270deg) scale(1.3);
        opacity: 0.7;
    }
}

/* Liquid Splash Effects */
.liquid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.liquid-splash {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(64, 224, 208, 0.4) 0%, 
        rgba(138, 43, 226, 0.3) 50%, 
        transparent 100%);
    animation: liquid-expand 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes liquid-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(64, 224, 208, 0.5), 0 0 40px rgba(138, 43, 226, 0.3);
    background: linear-gradient(45deg, #40e0d0, #8a2be2, #ff1493, #00bfff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-text 8s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes aurora-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 60px rgba(64, 224, 208, 0.1);
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.upload-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upload-method {
    width: 100%;
}

/* Drop Zone */
.upload-area {
    border: 3px dashed rgba(64, 224, 208, 0.5);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.upload-area:hover {
    border-color: rgba(64, 224, 208, 0.8);
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.2);
}

.upload-area.dragover {
    border-color: rgba(138, 43, 226, 0.8);
    background: rgba(138, 43, 226, 0.1);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.upload-icon {
    color: #40e0d0;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.5));
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.upload-area p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.file-size-hint {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    margin: 0.25rem 0 0 !important;
    font-style: italic;
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    color: #ff6b6b;
    font-size: 0.875rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.5), transparent);
}

.divider span {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* URL Input */
.url-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.url-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.url-input:focus {
    outline: none;
    border-color: rgba(64, 224, 208, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2), 
                0 0 20px rgba(64, 224, 208, 0.3);
}

.url-submit-btn {
    padding: 1rem;
    background: linear-gradient(45deg, #40e0d0, #8a2be2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

.url-submit-btn:hover {
    background: linear-gradient(45deg, #36c7b8, #7a24d4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #40e0d0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.5));
}

.loading-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.loading-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Result Section */
.result-section {
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
}

.result-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 60px rgba(64, 224, 208, 0.1);
}

.image-comparison-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.comparison-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    user-select: none;
    max-width: 600px;
    width: 100%;
}

.comparison-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.original-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.original-img.show {
    opacity: 1;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comparison-wrapper:hover .comparison-overlay {
    opacity: 1;
}

.hold-instruction {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.hold-text {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.hold-icon {
    color: #667eea;
    display: flex;
    align-items: center;
}

.comparison-labels {
    margin-top: 1rem;
    text-align: center;
}

.current-view {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    padding: 0.5rem 1rem;
    background: rgba(64, 224, 208, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.current-view.showing-original {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* Active state when holding */
.comparison-wrapper.active {
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.comparison-wrapper.active .comparison-overlay {
    opacity: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }
}

/* Additional animation for the hold icon */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.hold-icon svg {
    animation: float 3s ease-in-out infinite;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn,
.new-image-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.download-btn {
    background: linear-gradient(45deg, #40e0d0, #8a2be2);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

.download-btn:hover {
    background: linear-gradient(45deg, #36c7b8, #7a24d4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

.new-image-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(64, 224, 208, 0.3);
}

.new-image-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.2);
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.error-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 60px rgba(229, 62, 62, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    color: #ff6b6b;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.error-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.error-container p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.retry-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.retry-btn:hover {
    background: linear-gradient(45deg, #ff5252, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-section {
        padding: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .comparison-wrapper {
        max-width: 100%;
    }
    
    .hold-instruction {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hold-text {
        font-size: 0.8rem;
    }
    
    .result-container {
        padding: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .new-image-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .upload-area h3 {
        font-size: 1.2rem;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
    
    .url-input-container {
        flex-direction: column;
    }
    
    .url-input,
    .url-submit-btn {
        width: 100%;
    }
}

/* Feature Tabs */
.feature-tabs {
    margin: 2rem 0;
    padding: 0 1rem;
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Feature Description */
.feature-description {
    text-align: center;
    margin: 1rem 0 2rem;
    padding: 0 1rem;
}

.feature-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Options */
.feature-options {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 1rem 2rem;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Color Picker */
.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#bgColorPicker {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.preset-colors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Background Upload */
.bg-upload-area, .batch-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.bg-upload-area:hover, .batch-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.bg-upload-area span, .batch-upload-area span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Range Inputs */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Select Inputs */
select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

select option {
    background: #2a2a2a;
    color: white;
}

/* Batch Progress */
.batch-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.batch-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.batch-progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#progressText {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
    display: block;
}

/* Batch Results */
.batch-results-section {
    padding: 2rem 1rem;
}

.batch-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.batch-results-container h3 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.batch-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.batch-result-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.batch-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.batch-result-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.batch-result-info {
    text-align: center;
}

.batch-result-info p {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.batch-result-error {
    text-align: center;
    padding: 1rem;
}

.batch-result-error p {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.error-text {
    color: #ff6b6b !important;
    font-size: 0.75rem !important;
}

.batch-result-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.batch-result-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
    word-break: break-word;
}

.batch-result-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.batch-download-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* Mobile Responsiveness for Tabs */
@media (max-width: 768px) {
    .tab-container {
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 80px;
        text-align: center;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-options {
        margin: 0 0.5rem 1.5rem;
        padding: 1rem;
    }
    
    .batch-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .batch-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tab-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }
    
    .tab-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .tab-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .tab-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .tab-btn {
        flex-shrink: 0;
        min-width: 70px;
        padding: 0.4rem 0.6rem;
    }
    
    .feature-description p {
        font-size: 0.875rem;
    }
} 