/* ── LlmCredentialsEditor shared styles ──────────────────────────────────── */

.llm-editor-muted {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.llm-editor-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.llm-editor-required {
    color: #dc2626;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.llm-editor-table-wrap {
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.llm-editor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.llm-editor-table th,
.llm-editor-table td {
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    white-space: nowrap;
}

.llm-editor-table th {
    font-weight: 600;
    color: #374151;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.llm-editor-masked {
    color: #6b7280;
    font-family: monospace;
}

.llm-editor-url {
    color: #4b5563;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Add form ────────────────────────────────────────────────────────────── */
.llm-editor-form-box {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0,0,0,0.02);
}

.llm-editor-form-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.llm-editor-form-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.llm-editor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.llm-editor-field {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1;
}

.llm-editor-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.llm-editor-field input,
.llm-editor-field select {
    padding: 0.35rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.875rem;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.llm-editor-field input:focus,
.llm-editor-field select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.llm-editor-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ── Default config section ─────────────────────────────────────────────── */
.llm-editor-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 1rem 0 0.5rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.llm-editor-btn-primary {
    padding: 0.35rem 0.85rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.llm-editor-btn-primary:hover:not(:disabled) { background: #4f46e5; }
.llm-editor-btn-primary:disabled { opacity: 0.5; cursor: default; }

.llm-editor-btn-outline {
    padding: 0.35rem 0.85rem;
    background: transparent;
    color: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 5px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.llm-editor-btn-outline:hover:not(:disabled) {
    background: #ede9fe;
}

.llm-editor-btn-outline:disabled { opacity: 0.5; cursor: default; }

.llm-editor-btn-danger {
    padding: 0.25rem 0.6rem;
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.llm-editor-btn-danger:hover:not(:disabled) {
    background: #fee2e2;
}

.llm-editor-btn-danger:disabled { opacity: 0.5; cursor: default; }
