/* =====================================================================
   DB Connection String Builder Pro — app.css
   Extends the shared design system (base.css). Colors derive ONLY from
   base.css CSS variables so dark + light themes both work.
   ===================================================================== */

[data-theme="light"] .icon-sun { display: none; }
.icon-moon { display: none; }

/* ===================== Status badge ===================== */
#statusBadge .status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--success); box-shadow: 0 0 10px var(--success);
}

.pane-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* ===================== Privacy note ===================== */
.note-panel {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-color: var(--info);
  background: linear-gradient(var(--info-soft), var(--info-soft)), var(--glass);
}
.note-panel svg { width: 22px; height: 22px; color: var(--info); flex: none; margin-top: 2px; }
.note-panel p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.note-panel strong { color: var(--text); }

/* ===================== Driver tabs ===================== */
.driver-panel { padding: var(--space-3) var(--space-4); }
#driverTabs { width: 100%; }
#driverTabs button { flex: 1; }

/* ===================== Layout ===================== */
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
  align-items: start;
}

.input-with-btn { display: flex; gap: var(--space-2); align-items: center; }
.input-with-btn input { flex: 1; }

/* ===================== Driver option groups ===================== */
.opt-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.subfields {
  margin-left: 34px;
  padding-left: var(--space-3);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.note-inline {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===================== Output ===================== */
.output-code {
  margin: 0;
  padding: var(--space-4);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 60px;
  color: var(--text);
}
.secondary-output { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }

/* ===================== Reverse mode ===================== */
.reverse-panel { margin-top: var(--space-5); }
.parse-error {
  margin: var(--space-3) 0 0;
  color: var(--danger);
  font-size: 13px;
}

/* ===================== Shortcuts modal table ===================== */
.shortcut-table { width: 100%; border-collapse: collapse; }
.shortcut-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.shortcut-table tr:last-child td { border-bottom: none; }
.shortcut-table td:last-child { text-align: right; white-space: nowrap; }
.shortcut-table kbd + kbd { margin-left: 4px; }

code.mono { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .build-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  #driverTabs { flex-wrap: wrap; }
  #driverTabs button { flex: 1 1 calc(33.33% - var(--space-2)); }
}
@media (max-width: 720px) {
  #statusBadge { display: none; }
}
@media (max-width: 480px) {
  #driverTabs button { flex: 1 1 calc(50% - var(--space-2)); }
  .subfields { margin-left: var(--space-2); }
}
@media (max-width: 460px) {
  .row.wrap.gap-3 > .field { width: 100% !important; }
}
