/* JSON to XML Converter Tool Styles */
.json-xml-converter {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.json-xml-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.json-xml-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.json-xml-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.json-xml-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape-1, .shape-2, .shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 30%;
}

.json-xml-tool-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.json-xml-input-section, .json-xml-output-section {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.json-xml-input-header, .json-xml-output-header {
    background: #f5f7fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e5eb;
}

.json-xml-input-header h2, .json-xml-output-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #444;
}

.json-xml-actions, .json-xml-output-actions {
    display: flex;
    gap: 10px;
}

.json-xml-sample-btn, .json-xml-clear-btn, .json-xml-copy-btn, .json-xml-download-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.json-xml-sample-btn {
    background: #e1e5eb;
    color: #444;
}

.json-xml-sample-btn:hover {
    background: #d1d5db;
}

.json-xml-clear-btn {
    background: #ffebee;
    color: #d32f2f;
}

.json-xml-clear-btn:hover {
    background: #ffcdd2;
}

.json-xml-copy-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.json-xml-copy-btn:hover {
    background: #bbdefb;
}

.json-xml-download-btn {
    background: #e8f5e9;
    color: #388e3c;
}

.json-xml-download-btn:hover {
    background: #c8e6c9;
}

.json-xml-input, .json-xml-output {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: white;
}

.json-xml-input {
    border-bottom: 3px solid #6e8efb;
}

.json-xml-output {
    border-bottom: 3px solid #a777e3;
    white-space: pre-wrap;
}

.json-xml-error {
    color: #d32f2f;
    padding: 10px 15px;
    background: #ffebee;
    font-size: 14px;
    display: none;
}

.json-xml-convert-btn-container {
    display: flex;
    justify-content: center;
}

.json-xml-convert-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
    transition: all 0.3s;
}

.json-xml-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.6);
}

.json-xml-convert-btn svg {
    width: 20px;
    height: 20px;
}

.json-xml-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.json-xml-info-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #6e8efb;
}

.json-xml-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.json-xml-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(110, 142, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.json-xml-info-icon svg {
    color: #6e8efb;
}

.json-xml-info-box h3 {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: #444;
}

.json-xml-info-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.json-xml-content-section {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.json-xml-content-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-shape-1, .content-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.05);
}

.content-shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.content-shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

.json-xml-content-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 20px;
    position: relative;
}

.json-xml-content-text {
    position: relative;
}

.json-xml-content-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.json-xml-faq-section {
    margin-bottom: 50px;
}

.json-xml-faq-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 30px;
    text-align: center;
}

.json-xml-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.json-xml-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.json-xml-faq-question {
    width: 100%;
    padding: 20px;
    background: #f5f7fa;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.json-xml-faq-question:hover {
    background: #e1e5eb;
}

.json-xml-faq-question svg {
    transition: transform 0.3s;
}

.json-xml-faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.json-xml-faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.json-xml-faq-answer p {
    margin: 0;
    padding: 20px;
    color: #555;
    line-height: 1.6;
}

.json-xml-faq-item.active .json-xml-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.json-xml-related-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 500;
}

.json-xml-related-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .json-xml-hero-content h1 {
        font-size: 2rem;
    }
    
    .json-xml-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .json-xml-content-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .json-xml-hero {
        padding: 30px 20px;
    }
    
    .json-xml-input-header, .json-xml-output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .json-xml-actions, .json-xml-output-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .json-xml-sample-btn, .json-xml-clear-btn, .json-xml-copy-btn, .json-xml-download-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}