/* json-editor.css - estilos específicos para o Editor de JSON */

.tool-hero {
    background: linear-gradient(135deg, #0f172a 40%, #7c3aed 100%);
    color: #fff;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.tool-hero .container {
    position: relative;
    z-index: 2;
}

.tool-content {
    padding: 2rem 0 3rem;
    background: #0e1525;
}

.tool-card {
    background: #181c2a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border: 1px solid rgba(139,92,246,0.10);
    color: #f1f5f9;
    margin-bottom: 2rem;
}

.feature-list {
    color: #a5b4fc;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.tool-interface {
    margin-top: 2rem;
}

.json-editor {
    background: #181c2a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.10);
}

.editor-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.view-mode-selector,
.template-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group {
    display: flex;
    gap: 0.4rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.89rem;
}

.btn {
    padding: 0.7rem 1.3rem;
    border-radius: 7px;
    font-weight: 500;
    font-size: 0.97rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.btn-secondary {
    background: #20253a;
    color: #a5b4fc;
    border: 1px solid #7c3aed;
}

.btn:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 0 12px #7c3aed;
}

.editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#json-editor-container {
    flex: 1 1 340px;
    min-width: 300px;
    background: #111827;
    border-radius: 8px;
    border: 1px solid #7c3aed;
    color: #e0e7ef;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    resize: vertical;
    box-shadow: 0 2px 7px rgba(124,58,237,0.08);
}

.validation-result {
    background: #20253a;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    color: #fff;
    border: 1px solid #7c3aed;
    margin-left: 2rem;
    min-width: 220px;
    flex: 0 0 220px;
    align-self: flex-start;
}

.validation-message {
    font-size: 1.08rem;
    color: #fbbf24;
    margin-top: 0.6rem;
}

.validation-message.valid {
    color: #22c55e;
}

.validation-message.invalid {
    color: #ef4444;
}

.tutorial-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.tutorial-step {
    background: #181c2a;
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    flex: 1 1 220px;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(139,92,246,0.07);
    border: 1px solid rgba(139,92,246,0.13);
    color: #f1f5f9;
}

.step-number {
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .editor-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .validation-result {
        margin-left: 0;
        margin-top: 1.2rem;
        min-width: 0;
        width: 100%;
    }
    .tutorial-steps {
        flex-direction: column;
        gap: 1rem;
    }
}
