/* JPG to PNG Converter Specific Styles */
.jpg-to-png-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.jpg-to-png-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.jpg-to-png-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.jpg-to-png-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.jpg-to-png-converter {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.jpg-to-png-upload-area {
    border: 2px dashed #a777e3;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background-color: #f9f5ff;
}

.jpg-to-png-upload-area:hover {
    background-color: #f0e6ff;
    border-color: #8e5fd3;
}

.jpg-to-png-upload-icon {
    margin-bottom: 15px;
    color: #a777e3;
}

.jpg-to-png-upload-text {
    color: #666;
    margin: 10px 0;
}

.jpg-to-png-file-input {
    display: none;
}

.jpg-to-png-restrictions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}

.jpg-to-png-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.jpg-to-png-setting {
    flex: 1;
    min-width: 200px;
}

.jpg-to-png-setting label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.jpg-to-png-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.jpg-to-png-select:focus {
    border-color: #a777e3;
    outline: none;
}

.jpg-to-png-color-picker {
    margin-top: 10px;
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.jpg-to-png-preview-container {
    margin-top: 30px;
}

.jpg-to-png-preview-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.jpg-to-png-preview-box {
    flex: 1;
    min-width: 300px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.jpg-to-png-preview-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.jpg-to-png-preview-image {
    max-width: 100%;
    max-height: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.jpg-to-png-download-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative; /* Add this */
}

.jpg-to-png-download-btn {
    background-color: #6e8efb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.jpg-to-png-download-btn:hover {
    background-color: #5a7df5;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(110, 142, 251, 0.3);
}

.jpg-to-png-secondary-btn {
    background-color: white;
    color: #6e8efb;
    border: 1px solid #6e8efb;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.jpg-to-png-secondary-btn:hover {
    background-color: #f0f4ff;
}

.jpg-to-png-processing {
    text-align: center;
    padding: 30px;
}

.jpg-to-png-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6e8efb;
    border-radius: 50%;
    animation: jpg-to-png-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes jpg-to-png-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Section Styles */
.jpg-to-png-info-section {
    margin-bottom: 40px;
}

.jpg-to-png-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #444;
    position: relative;
}

.jpg-to-png-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    margin: 15px auto 0;
    border-radius: 2px;
}

.jpg-to-png-info-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.jpg-to-png-info-box {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.jpg-to-png-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.jpg-to-png-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.jpg-to-png-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

.jpg-to-png-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.jpg-to-png-content-section {
    margin-bottom: 40px;
}

.jpg-to-png-content-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
}

.jpg-to-png-content-box h3 {
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
}

.jpg-to-png-content-box ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.jpg-to-png-content-box li {
    margin-bottom: 8px;
}

.jpg-to-png-internal-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.jpg-to-png-internal-link:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */
.jpg-to-png-faq-section {
    margin-bottom: 40px;
}

.jpg-to-png-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.jpg-to-png-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.jpg-to-png-faq-question {
    width: 100%;
    padding: 20px;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.jpg-to-png-faq-question:hover {
    background-color: #f9f5ff;
}

.jpg-to-png-faq-icon {
    transition: transform 0.3s;
}

.jpg-to-png-faq-item.active .jpg-to-png-faq-icon {
    transform: rotate(180deg);
}

.jpg-to-png-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #f9f9f9;
}

.jpg-to-png-faq-item.active .jpg-to-png-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.jpg-to-png-faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .jpg-to-png-title {
        font-size: 2rem;
    }
    
    .jpg-to-png-subtitle {
        font-size: 1rem;
    }
    
    .jpg-to-png-converter {
        padding: 20px;
    }
    
    .jpg-to-png-preview-wrapper {
        flex-direction: column;
    }
    
    .jpg-to-png-download-container {
        flex-direction: column;
        align-items: center;
    }
    
    .jpg-to-png-download-btn, .jpg-to-png-secondary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .jpg-to-png-hero {
        padding: 30px 15px;
    }
    
    .jpg-to-png-title {
        font-size: 1.8rem;
    }
    
    .jpg-to-png-settings {
        flex-direction: column;
        gap: 15px;
    }
    
    .jpg-to-png-info-box {
        min-width: 100%;
    }
}