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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Drop Zone Wrapper */
.drop-zone-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.drop-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 20px 20px 0 0;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
    border-bottom: none;
}

.drop-zone.drag-over {
    border-color: #3498db;
    background-color: #f0f8ff;
    transform: scale(1.01);
}

.drop-zone-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.drop-zone-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.upload-icon {
    width: 60px;
    height: 60px;
    color: #3498db;
    margin-bottom: 20px;
}

.browse-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.browse-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Options Bar */
.options-bar {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 30px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 4px;
}

.info-icon {
    color: #6c757d;
    font-size: 0.85rem;
    cursor: help;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tooltip-container:hover .info-icon {
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quality-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.1);
}

.quality-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.quality-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 40px;
}

.scale-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-select:hover {
    border-color: #3498db;
}

.scale-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.option-divider {
    width: 1px;
    height: 24px;
    background: #dee2e6;
}

/* Download All Section */
.download-all-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.download-all-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-all-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.download-all-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.clear-all-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-all-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Conversion Items */
.conversion-list {
    display: grid;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.conversion-list::-webkit-scrollbar {
    width: 8px;
}

.conversion-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.conversion-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.conversion-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.conversion-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideIn 0.3s ease;
}

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

.preview-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.file-details {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.conversion-arrow {
    color: #3498db;
    font-weight: 600;
    margin: 0 8px;
}

.dimension-info {
    font-size: 0.85rem;
    color: #6c757d;
}

.space-savings {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

.space-savings.savings-positive {
    background-color: #d4edda;
    color: #155724;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background-color: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.status-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.status-text.success {
    color: #27ae60;
}

.status-text.error {
    color: #e74c3c;
}

.download-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.download-btn:hover {
    background-color: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.badge {
    background: #e8f4f8;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #c3e0ec;
}

/* Privacy statement */
.privacy-statement {
    background: #f8fbfc;
    border: 2px solid #e1f0f5;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    text-align: left;
}

.privacy-statement h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.privacy-statement p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.privacy-features {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.privacy-features .feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.privacy-features .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-features strong {
    color: #2c3e50;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    text-align: left;
}

.faq-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.faq-section details {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.faq-section details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-section summary {
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    list-style: none;
    position: relative;
    padding-right: 25px;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    color: #3498db;
    transition: transform 0.2s ease;
}

.faq-section details[open] summary::after {
    transform: rotate(45deg);
}

.faq-section details p {
    margin-top: 15px;
    color: #555;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
}

footer .links {
    margin-top: 10px;
    font-size: 0.9rem;
}

footer .links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

footer .links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.stats {
    margin-top: 10px;
    font-size: 0.9rem;
}

#conversionCount {
    font-weight: 600;
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .options-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .option-divider {
        display: none;
    }
    
    .conversion-item {
        flex-direction: column;
        text-align: center;
    }
    
    .preview-container {
        width: 100px;
        height: 100px;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .quality-slider {
        width: 100px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .download-all-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-all-btn,
    .clear-all-btn {
        width: 100%;
    }
    
    /* Privacy elements mobile optimization */
    .trust-badges {
        font-size: 0.8rem;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .privacy-statement {
        padding: 20px;
    }
    
    .privacy-features .feature {
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-section h2 {
        font-size: 1.2rem;
    }
    
    .faq-section summary {
        font-size: 0.95rem;
    }
}