/* json-validator.css - estilos específicos para o Validador de JSON */

.tool-hero {
    background: linear-gradient(135deg, #0f172a 40%, #6d28d9 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-validator {
    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;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

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

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

.editor-wrapper {
    flex: 1 1 340px;
    min-width: 300px;
}

.editor-wrapper h3 {
    color: #fff;
    margin-bottom: 0.7rem;
}

#json-input {
    width: 100%;
    min-height: 260px;
    background: #111827;
    color: #e0e7ef;
    border-radius: 8px;
    border: 1px solid #8b5cf6;
    font-size: 1.05rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    margin-bottom: 0.7rem;
    resize: vertical;
}

.result-container {
    flex: 1 1 280px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.validation-result {
    background: #20253a;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    color: #fff;
    border: 1px solid #8b5cf6;
    margin-bottom: 1rem;
}

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

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

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

.json-tree-view {
    background: #20253a;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    color: #fff;
    border: 1px solid #8b5cf6;
    overflow-x: auto;
}

.json-tree {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.96rem;
    color: #e2e8f0;
}

.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: #8b5cf6;
    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;
    }
    .tutorial-steps {
        flex-direction: column;
        gap: 1rem;
    }
}
