.tool-json-beautifier {
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100%;
}

.tool-json-beautifier .json-beautifier-wrapper {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    border-left: 4px solid #0ea5e9;
}

.tool-json-beautifier .json-beautifier-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.tool-json-beautifier .json-beautifier-header .text-muted {
    font-size: 0.95rem;
}

.tool-json-beautifier .json-textarea {
    font-family: 'Consolas', 'Monaco', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
}

.tool-json-beautifier .json-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background: #fff;
}

.tool-json-beautifier .json-textarea::placeholder {
    color: #94a3b8;
}

.tool-json-beautifier .indent-select {
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    font-weight: 500;
}

.tool-json-beautifier .btn-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-json-beautifier .btn-beautify {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.tool-json-beautifier .btn-beautify:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.tool-json-beautifier .btn-beautify:active {
    transform: translateY(0);
}

.tool-json-beautifier .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #475569 !important;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-json-beautifier .btn-outline-secondary:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
    color: #475569 !important;
}

.tool-json-beautifier .json-beautifier-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e2e8f0;
    animation: jsonResultFade 0.3s ease;
}

@keyframes jsonResultFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-json-beautifier .result-box {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.tool-json-beautifier .result-box .json-textarea {
    padding-right: 3.5rem;
    min-height: 200px;
    background: #f8fafc;
}

.tool-json-beautifier .btn-copy-result {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tool-json-beautifier .btn-copy-result:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
}

.tool-json-beautifier .btn-copy-result.copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.tool-json-beautifier .btn-copy-result .btn-copy-text {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .tool-json-beautifier .json-beautifier-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .tool-json-beautifier .d-flex.align-items-center.gap-3.mb-2 {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .tool-json-beautifier .btn-group-actions {
        width: 100%;
    }

    .tool-json-beautifier .btn-group-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .tool-json-beautifier .btn-copy-result .btn-copy-text {
        display: none;
    }

    .tool-json-beautifier .result-box .json-textarea {
        padding-right: 2.5rem;
    }
}
