/* JPG to WebP Converter Tool Styles */
.jpg-to-webp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.jpg-to-webp-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jpg-to-webp-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.jpg-to-webp-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.jpg-to-webp-converter {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.jpg-to-webp-upload-area {
    border: 2px dashed #a0aec0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.jpg-to-webp-upload-area:hover {
    border-color: #4a5568;
    background-color: #f8fafc;
}

.jpg-to-webp-upload-area.active {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.jpg-to-webp-upload-content {
    text-align: center;
    transition: all 0.3s ease;
}

.jpg-to-webp-upload-icon {
    margin-bottom: 15px;
    color: #4a5568;
}

.jpg-to-webp-upload-text {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2d3748;
    transition: all 0.3s ease;
}

.jpg-to-webp-upload-hint {
    color: #718096;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.jpg-to-webp-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.jpg-to-webp-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.jpg-to-webp-preview-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.jpg-to-webp-preview-thumbnail:hover {
    transform: scale(1.05);
    border-color: #4299e1;
}

.jpg-to-webp-upload-area.has-files .jpg-to-webp-upload-content {
    opacity: 0.5;
    transform: scale(0.95);
}

.jpg-to-webp-upload-area.has-files:hover .jpg-to-webp-upload-content {
    opacity: 1;
    transform: scale(1);
}

.jpg-to-webp-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.jpg-to-webp-quality {
    flex: 1;
    min-width: 250px;
}

.jpg-to-webp-quality label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.jpg-to-webp-quality-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}

.jpg-to-webp-quality-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4299e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jpg-to-webp-quality-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #3182ce;
}

.jpg-to-webp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.jpg-to-webp-btn-primary {
    background-color: #4299e1;
    color: white;
}

.jpg-to-webp-btn-primary:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.jpg-to-webp-btn-primary:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.jpg-to-webp-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.jpg-to-webp-result-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.jpg-to-webp-result-item:hover {
    transform: translateY(-5px);
}

.jpg-to-webp-result-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.jpg-to-webp-result-details {
    padding: 15px;
}

.jpg-to-webp-result-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.jpg-to-webp-result-actions {
    display: flex;
    gap: 10px;
}

.jpg-to-webp-download-btn {
    flex: 1;
    padding: 8px 12px;
    background-color: #48bb78;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jpg-to-webp-download-btn:hover {
    background-color: #38a169;
}

.jpg-to-webp-info-section {
    margin: 50px 0;
}

.jpg-to-webp-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.jpg-to-webp-info-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jpg-to-webp-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.jpg-to-webp-info-icon {
    width: 50px;
    height: 50px;
    background-color: #ebf8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #4299e1;
}

.jpg-to-webp-info-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.jpg-to-webp-info-text {
    color: #4a5568;
    line-height: 1.6;
}

.jpg-to-webp-content-section {
    margin: 50px 0;
}

.jpg-to-webp-content-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2d3748;
    position: relative;
    padding-bottom: 10px;
}

.jpg-to-webp-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #4299e1;
}

.jpg-to-webp-content-paragraph {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #4a5568;
}

.jpg-to-webp-content-paragraph.jpg-to-webp-highlight {
    background-color: #ebf8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.jpg-to-webp-faq-section {
    margin: 60px 0;
}

.jpg-to-webp-faq-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.jpg-to-webp-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.jpg-to-webp-faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.jpg-to-webp-faq-question:hover {
    background-color: #f8fafc;
}

.jpg-to-webp-faq-question .jpg-to-webp-faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.jpg-to-webp-faq-question.active .jpg-to-webp-faq-icon {
    transform: rotate(45deg);
}

.jpg-to-webp-faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.jpg-to-webp-faq-answer p {
    padding: 20px;
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.jpg-to-webp-faq-item.active .jpg-to-webp-faq-answer {
    max-height: 500px;
    padding: 0;
}

.jpg-to-webp-related-tool {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 10px;
}

.jpg-to-webp-related-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.jpg-to-webp-related-text {
    color: #4a5568;
    font-size: 1.1rem;
}

.jpg-to-webp-related-link {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jpg-to-webp-related-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .jpg-to-webp-title {
        font-size: 2rem;
    }
    
    .jpg-to-webp-subtitle {
        font-size: 1rem;
    }
    
    .jpg-to-webp-converter {
        padding: 20px;
    }
    
    .jpg-to-webp-settings {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jpg-to-webp-info-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jpg-to-webp-container {
        padding: 15px;
    }
    
    .jpg-to-webp-title {
        font-size: 1.8rem;
    }
    
    .jpg-to-webp-results {
        grid-template-columns: 1fr;
    }
}