/* Main Container Styles */
.webp-to-png-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.webp-to-png-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.webp-to-png-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.webp-to-png-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Upload Area */
.webp-to-png-converter {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.webp-to-png-upload-area {
    border: 2px dashed #a777e3;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f6ff;
}

.webp-to-png-upload-area:hover {
    border-color: #6e8efb;
    background-color: #f0ebff;
}

.webp-to-png-upload-icon svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #a777e3;
}

.webp-to-png-upload-area h2 {
    margin-bottom: 10px;
    color: #555;
}

.webp-to-png-upload-text {
    margin: 15px 0;
    color: #777;
}

.webp-to-png-upload-btn {
    display: inline-block;
    background-color: #6e8efb;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.webp-to-png-upload-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 142, 251, 0.4);
}

.webp-to-png-upload-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

/* Options Section */
.webp-to-png-options {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.webp-to-png-option {
    display: flex;
    flex-direction: column;
}

.webp-to-png-option label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.webp-to-png-option select, .webp-to-png-option input[type="checkbox"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
}

.webp-to-png-option select {
    cursor: pointer;
}

.webp-to-png-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Result Section */
.webp-to-png-result {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.webp-to-png-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.webp-to-png-preview-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.webp-to-png-preview-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.webp-to-png-preview {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.webp-to-png-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.webp-to-png-file-info {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.webp-to-png-download-container {
    text-align: center;
}

.webp-to-png-download-btn {
    display: inline-flex;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.webp-to-png-download-btn:hover {
    background-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.webp-to-png-download-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Processing Indicator */
.webp-to-png-processing {
    text-align: center;
    margin: 40px 0;
}

.webp-to-png-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6e8efb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Info Boxes Section */
.webp-to-png-info-section {
    margin: 60px 0;
}

.webp-to-png-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.webp-to-png-info-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.webp-to-png-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.webp-to-png-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #f0ebff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e8efb;
}

.webp-to-png-info-icon svg {
    width: 30px;
    height: 30px;
}

.webp-to-png-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.webp-to-png-info-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Content Section */
.webp-to-png-content-section {
    margin: 60px 0;
    position: relative;
}

.webp-to-png-content-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.webp-to-png-decorative-shape {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6e8efb, transparent);
}

.webp-to-png-content-decorative h2 {
    margin: 0 20px;
    text-align: center;
    color: #444;
    font-size: 1.8rem;
}

.webp-to-png-content-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #555;
}

.webp-to-png-content-text h3 {
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

.webp-to-png-feature-list {
    padding-left: 20px;
    margin: 20px 0;
}

.webp-to-png-feature-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* FAQ Section */
.webp-to-png-faq-section {
    margin: 60px 0;
}

.webp-to-png-faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #444;
    font-size: 1.8rem;
}

.webp-to-png-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.webp-to-png-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.webp-to-png-faq-question {
    width: 100%;
    padding: 20px;
    background-color: white;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #444;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
}

.webp-to-png-faq-question:hover {
    background-color: #f9f6ff;
}

.webp-to-png-faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.webp-to-png-faq-item.active .webp-to-png-faq-icon {
    transform: rotate(180deg);
}

.webp-to-png-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfbff;
}

.webp-to-png-faq-item.active .webp-to-png-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.webp-to-png-faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Related Tool Section */
.webp-to-png-related-tool {
    margin: 60px 0;
    text-align: center;
}

.webp-to-png-related-tool h2 {
    margin-bottom: 30px;
    color: #444;
    font-size: 1.8rem;
}

.webp-to-png-related-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.webp-to-png-related-card h3 {
    margin-top: 0;
    color: #555;
}

.webp-to-png-related-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.webp-to-png-related-btn {
    display: inline-block;
    background-color: #6e8efb;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.webp-to-png-related-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 142, 251, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .webp-to-png-hero h1 {
        font-size: 2rem;
    }
    
    .webp-to-png-subtitle {
        font-size: 1rem;
    }
    
    .webp-to-png-options {
        grid-template-columns: 1fr;
    }
    
    .webp-to-png-preview-container {
        grid-template-columns: 1fr;
    }
    
    .webp-to-png-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .webp-to-png-content-decorative h2 {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .webp-to-png-hero {
        padding: 30px 15px;
    }
    
    .webp-to-png-converter {
        padding: 20px 15px;
    }
    
    .webp-to-png-upload-area {
        padding: 30px 15px;
    }
    
    .webp-to-png-info-box {
        padding: 25px 20px;
    }
    
    .webp-to-png-content-decorative h2 {
        font-size: 1.3rem;
    }
}