/* ============================================================
   AISP Smart Autocomplete Address – Admin UI
   v1.0.5
============================================================ */

/* === General Layout === */
.wrap h1 {
  margin-bottom: 20px;
  color: #1d2327;
  font-weight: 600;
}

.wrap {
  max-width: 1100px;
}

/* === Navigation Tabs === */
.nav-tab-wrapper {
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-left: 2px;
}

.nav-tab {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  margin-right: 2px;
  color: #1d2327;
  background: #f6f7f7;
  border-radius: 4px 4px 0 0;
  border: 1px solid #dcdcde;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-tab:hover {
  background: #f0f6ff;
  color: #0073aa;
}

.nav-tab-active {
  background: #f0f6ff;
  border-color: #c3e6ff;
  color: #0073aa;
  font-weight: 600;
}

/* Dimmed inactive tabs (plugin not installed) */
.nav-tab[style*="opacity:0.5"] {
  background: #fafafa !important;
  color: #999 !important;
  border-color: #e2e2e2 !important;
}

/* === Settings Table === */
.form-table th {
  width: 260px;
  font-weight: 600;
  color: #333;
  padding-top: 15px;
}

.form-table td {
  padding: 10px 0;
}

.form-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.form-table input[type="text"],
.form-table input[type="number"] {
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #ccd0d4;
  padding: 4px 8px;
  font-size: 14px;
  background: #fff;
}

.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}

.form-table p.description {
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

/* === Check Key Button === */
#aisp_here_api_key {
  vertical-align: middle;
}

#aisp-check-api-key {
  margin-left: 10px;
  vertical-align: middle;
  margin-top: -2px;
}

#aisp-key-status {
  margin-top: 8px;
  font-weight: 600;
  transition: color 0.3s ease;
}

#aisp-key-status.success { color: #008000; }
#aisp-key-status.error   { color: #cc0000; }

/* === Checkboxes === */
input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 6px;
}

/* === Save Button === */
.wp-core-ui .button-primary {
  margin-top: 10px;
  padding: 6px 16px;
  font-weight: 500;
}

/* === Card (Help tab) === */
#toplevel_page_aisp-autocomplete .card {
  border-color: #e2e4e7;
  padding: 20px 24px;
}

/* === Mobile === */
@media (max-width: 782px) {
  .form-table th {
    width: 100%;
    display: block;
  }
  .form-table td {
    display: block;
    margin-bottom: 20px;
  }
  .form-table input[type="text"],
  .form-table input[type="number"] {
    width: 100%;
  }
}
