/* ============================================================
   AISP Smart Autocomplete Address – Admin UI Enhancements
   Applies to all AISP plugin settings tabs and sections
============================================================ */

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

.wrap {
  max-width: 1100px;
}

/* === Tabs (Navigation Bar) - Compact & WordPress-native === */
.nav-tab-wrapper {
  margin-bottom: 18px; /* moins d’espace sous les onglets */
  border-bottom: 1px solid #ddd;
  padding-left: 2px;
}

.nav-tab {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px; /* hauteur et largeur réduites */
  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;
}

/* Slightly dimmed inactive tabs (e.g., requires plugins) */
.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;
}

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

.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-check-api-key {
  margin-left: 10px;
}

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

/* Feedback Colors */
#aisp-key-status.success {
  color: #008000; /* Green */
}

#aisp-key-status.error {
  color: #cc0000; /* Red */
}

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

/* === Mobile Adaptation === */
@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%;
  }
}
/* === Improve visual balance of the settings page === */

/* Align "Check Key" button vertically with input */
#aisp_here_api_key {
  vertical-align: middle;
}
#aisp-check-api-key {
  vertical-align: middle;
  margin-top: -2px;
}

/* Add slight top space to each setting row */
.form-table tr {
  border-bottom: 1px solid #f0f0f0;
}
.form-table th {
  padding-top: 15px;
}

/* Improve spacing between "Save Changes" button and table */
.wp-core-ui .button-primary {
  margin-top: 10px;
  padding: 6px 16px;
  font-weight: 500;
}

/* Make inactive tabs slightly faded for clarity */
.nav-tab[style*="opacity:0.5"] {
  background: #fafafa !important;
  color: #999 !important;
  border-color: #e2e2e2 !important;
}


/* Rétablir le bon espacement entre les onglets (sans trop d’espace) */
.nav-tab {
  margin-right: 2 !important;
  border-right: none !important;
}

.nav-tab + .nav-tab {
  margin-left: 2px !important;
}

/* adoucir un peu le contraste du contour */
#toplevel_page_aisp-autocomplete .card {
  border-color: #e2e4e7; 











