/* XML to JSON Converter Styles */
.xml-json-converter {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.tool-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tool-hero .hero-content {
    position: relative;
    z-index: 2;
}

.tool-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    opacity: 0.9;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 20%);
    z-index: 1;
}

.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.input-section, .output-section {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(to right, #f5f7fa, #e4e8eb);
    border-bottom: 1px solid #ddd;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #444;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-clear, .btn-sample, .btn-copy, .btn-download {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-clear {
    background-color: #ffebee;
    color: #c62828;
}

.btn-clear:hover {
    background-color: #ffcdd2;
}

.btn-sample {
    background-color: #e3f2fd;
    color: #1565c0;
}

.btn-sample:hover {
    background-color: #bbdefb;
}

.btn-copy {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.btn-copy:hover {
    background-color: #c8e6c9;
}

.btn-download {
    background-color: #e1f5fe;
    color: #0277bd;
}

.btn-download:hover {
    background-color: #b3e5fc;
}

.input-box, .output-box {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background-color: #fafafa;
}

.input-box {
    color: #333;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.output-box {
    color: #1a237e;
    white-space: pre-wrap;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.convert-btn-container {
    display: flex;
    justify-content: center;
}

.btn-convert {
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 0, 224, 0.4);
}

.btn-convert:active {
    transform: translateY(0);
}

.convert-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Info Boxes */
.tool-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-box {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-box.box-1 {
    border-top-color: #4a00e0;
}

.info-box.box-2 {
    border-top-color: #8e2de2;
}

.info-box.box-3 {
    border-top-color: #a777e3;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.1), rgba(142, 45, 226, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: #4a00e0;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section */
.content-section {
    margin-bottom: 3rem;
}

.content-title {
    font-size: 1.8rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-decorator {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    margin-bottom: 1.5rem;
}

.content-paragraph {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    position: relative;
    padding: 1.5rem;
    background-color: #f9f9ff;
    border-radius: 8px;
    margin: 2rem 0;
}

.feature-shape {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.1), rgba(142, 45, 226, 0.1));
    border-radius: 50%;
    z-index: 0;
}

.feature-highlight h3 {
    position: relative;
    z-index: 1;
    color: #4a00e0;
    margin-bottom: 1rem;
}

.feature-highlight ul {
    position: relative;
    z-index: 1;
    padding-left: 1.5rem;
}

.feature-highlight li {
    margin-bottom: 0.5rem;
    color: #555;
}

.related-tool {
    background-color: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #4a00e0;
}

.related-tool h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.related-tool a {
    color: #4a00e0;
    text-decoration: none;
    font-weight: 600;
}

.related-tool a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 1.8rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.faq-decorator {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #8e2de2, #a777e3);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    text-align: left;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f9f9ff;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8e2de2;
}

.faq-answer {
    padding: 0 1.5rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer p {
    padding: 1rem 0;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-hero h1 {
        font-size: 2rem;
    }
    
    .tool-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .input-box, .output-box {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .action-buttons {
        align-self: flex-end;
    }
    
    .content-title, .faq-title {
        font-size: 1.5rem;
    }
}