.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.dialog-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid #e1e4e8;
}

.dialog-header h3 {
  margin: 0;
  font-size: 22px;
  color: #2c3e50;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #95a5a6;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.dialog-close:hover {
  color: #2c3e50;
}

.dialog-body {
  padding: 30px;
}

.dialog-description {
  margin: 0 0 24px 0;
  color: #7f8c8d;
  font-size: 15px;
}

.connector-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.connector-type-card {
  background: white;
  border: 2px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.connector-type-card:not(.disabled):hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.connector-type-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.connector-type-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.connector-type-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #2c3e50;
}

.connector-type-card p {
  margin: 0;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #ecf0f1;
  border-radius: 12px;
  font-size: 11px;
  color: #7f8c8d;
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

.form-group .required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-help {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.form-help h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #2c3e50;
}

.form-help ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.6;
}

.form-help li {
  margin-bottom: 8px;
}

.form-help a {
  color: #3498db;
  text-decoration: none;
}

.form-help a:hover {
  text-decoration: underline;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 30px;
  border-top: 1px solid #e1e4e8;
}

.btn-primary,
.btn-secondary {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #ecf0f1;
  color: #7f8c8d;
}

.btn-secondary:hover {
  background: #dfe4e8;
  color: #2c3e50;
}

.text-center {
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 4px solid #ecf0f1;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #2ecc71;
  color: white;
  font-size: 48px;
  border-radius: 50%;
  margin: 20px auto;
}

.error-message {
  padding: 16px;
  background: #fff5f5;
  border: 1px solid #ffdddd;
  border-radius: 6px;
  color: #e74c3c;
  font-size: 14px;
}

.error-message strong {
  display: block;
  margin-bottom: 8px;
  color: #c0392b;
}
