/* APIServiços Hub — estilos complementares */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light, #f8fafc);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.doc-block {
    background: var(--surface-1, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 8px);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.doc-block pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .8125rem;
}

.chave-revelada {
    font-family: monospace;
    background: #fef3c7;
    padding: .75rem 1rem;
    border-radius: 8px;
    word-break: break-all;
    border: 1px dashed #f59e0b;
}

.servico-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}

.servico-check-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.servico-check-item label {
    cursor: pointer;
    flex: 1;
}

.modal-lg .modal {
    max-width: 720px;
}

/* Sandbox */
.sandbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.sandbox-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-1, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 8px);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.sandbox-card:hover {
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .12);
}

.sandbox-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(79, 70, 229, .1);
    color: var(--primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sandbox-card-body {
    flex: 1;
    min-width: 0;
}

.sandbox-card-title {
    display: block;
    font-weight: 600;
    font-size: .9375rem;
}

.sandbox-card-meta {
    display: block;
    font-size: .75rem;
    color: var(--secondary, #64748b);
    margin-top: .125rem;
}

.sandbox-card-endpoint {
    display: block;
    font-size: .6875rem;
    margin-top: .375rem;
    opacity: .85;
    word-break: break-all;
}

.sandbox-card-arrow {
    color: var(--secondary, #64748b);
}

.sandbox-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .sandbox-layout {
        grid-template-columns: 1fr;
    }
}

.sandbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: .875rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.sandbox-json {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: .8125rem;
    line-height: 1.5;
    tab-size: 2;
}

.sandbox-response {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow: auto;
    max-height: 520px;
    font-size: .8125rem;
    line-height: 1.55;
    margin: 0;
}

.sandbox-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary, #64748b);
}

.sandbox-empty i {
    font-size: 2.5rem;
    opacity: .4;
    display: block;
    margin-bottom: .75rem;
}

.sandbox-actions {
    display: flex;
    gap: .75rem;
}

.btn-sandbox:hover,
.btn-icon.btn-sandbox:hover {
    color: var(--primary, #4f46e5);
}

.badge-secondary {
    background: var(--surface-2, #f1f5f9);
    color: var(--text-light, #475569);
}
