.relational-db-widget {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.rdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.rdb-card,
.rdb-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1rem;
}
.rdb-card h3,
.rdb-form-card h3 {
    margin-top: 0;
}
.rdb-hint {
    color: #475569;
    font-size: 0.92rem;
}
.rdb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 14px;
}
.rdb-table th {
    background: #eef2ff;
    color: #3730a3;
    text-align: left;
    padding: 0.55rem;
}
.rdb-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.55rem;
}
.rdb-table tr.rdb-highlight td {
    background: #ecfdf5;
    color: #14532d;
    font-weight: 700;
}
.rdb-table tr.rdb-error-row td {
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}
.rdb-form-card {
    margin-top: 1rem;
}
.rdb-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}
.rdb-input-grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    color: #334155;
}
.rdb-input-grid input {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}
.rdb-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.rdb-buttons button {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    background: #0f172a;
    color: white;
    cursor: pointer;
    font-weight: 700;
}
.rdb-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.rdb-result {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-weight: 700;
}
.rdb-result.rdb-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #14532d;
}
.rdb-result.rdb-error {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #7c2d12;
}
@media (max-width: 640px) {
    .rdb-buttons button { width: 100%; }
}
