/*
 * Admin styles for Airefs Tracking plugin
 */

/**
 * Admin styles for Airefs Tracking plugin
 */

/* Connection Status Section */
.airefs-connection-status {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.airefs-connection-status h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1d2327;
}

#connection-test-result {
  margin-top: 15px;
}

#connection-test-result .notice {
  margin: 10px 0 0 0;
  padding: 8px 12px;
}

/* Info Box */
.airefs-info-box {
  background: #f6f7f7;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.airefs-info-box h3 {
  margin-top: 0;
  color: #1d2327;
}

.airefs-info-box ol {
  margin: 15px 0 0 20px;
}

.airefs-info-box li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Access Token Field */
#access_token {
  margin-right: 10px;
}

#toggle-token-visibility {
  vertical-align: baseline;
}

/* Settings Form Enhancements */
.form-table th {
  width: 200px;
}

.form-table td {
  vertical-align: top;
  padding-top: 20px;
}

.form-table td input[type="text"],
.form-table td input[type="password"],
.form-table td input[type="url"] {
  width: 100%;
  max-width: 400px;
}

.form-table td .description {
  margin-top: 8px;
  font-style: normal;
  color: #646970;
}

/* Checkbox styles */
.form-table input[type="checkbox"] {
  margin-right: 8px;
}

.form-table label {
  vertical-align: top;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 782px) {
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .form-table th {
    border-bottom: none;
  }

  .form-table td input[type="text"],
  .form-table td input[type="password"],
  .form-table td input[type="url"] {
    width: 100%;
  }

  #toggle-token-visibility {
    margin-top: 10px;
    margin-left: 0;
  }
}

/* Notice enhancements */
.notice.inline {
  display: block;
  margin: 5px 0 15px 0;
}

/* Loading state for test button */
#test-connection:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Section headers */
h2.title {
  margin-bottom: 10px;
  color: #1d2327;
}

/* Description improvements */
.description a {
  text-decoration: none;
}

.description a:hover {
  text-decoration: underline;
}
