
/* ============================================================
   AFAS InSite Configurator - Stylesheet
   ============================================================ */

/* Reset & Base */
#insite-configurator {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  color: #1a1a2e;
  line-height: 1.5;
}

#insite-configurator * {
  box-sizing: border-box;
}

/* Header */
.cfg-header {
  margin-bottom: 24px;
}

.cfg-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.cfg-subtitle {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Progress Bar */
.cfg-progress {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cfg-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cfg-step-indicator {
  font-size: 12px;
  color: #888;
  margin-bottom: 24px;
}

/* Step Container */
.cfg-step {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
}

.cfg-step h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.cfg-step-desc {
  color: #666;
  font-size: 13px;
  margin: 0 0 24px;
}

/* Info Box */
.cfg-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 20px;
}

/* Form Groups */
.cfg-form-group {
  margin-bottom: 16px;
}

.cfg-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.cfg-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cfg-form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Module Selection Grid */
.cfg-module-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.cfg-module-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cfg-module-card:hover {
  border-color: #b0c4ff;
  background: #f8faff;
}

.cfg-module-card.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.cfg-module-card.disabled {
  opacity: 0.7;
  cursor: default;
}

.cfg-module-card.disabled:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.cfg-module-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 10px;
  flex-shrink: 0;
}

.cfg-module-card.active .cfg-module-icon {
  background: #dbeafe;
}

.cfg-module-info {
  flex: 1;
}

.cfg-module-naam {
  font-size: 14px;
  font-weight: 600;
}

.cfg-module-desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.cfg-module-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cfg-module-card.active .cfg-module-check {
  background: #2563eb;
  border-color: #2563eb;
}

/* Secties */
.cfg-sectie {
  margin-bottom: 24px;
}

.cfg-sectie-titel {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

/* Checkbox List */
.cfg-checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cfg-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.cfg-checkbox-item:hover {
  background: #f8faff;
  border-color: #c8d8ff;
}

.cfg-checkbox-item.checked {
  background: #eff6ff;
  border-color: #93c5fd;
}

.cfg-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.cfg-checkbox-label {
  font-size: 13px;
  flex: 1;
}

.cfg-checkbox-type {
  font-size: 10px;
  color: #aaa;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Wireframe Preview */
.cfg-wireframe-preview {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.cfg-wireframe-preview h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #444;
}

.wf-container {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  font-size: 12px;
}

.wf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1e293b;
  color: #fff;
  font-size: 12px;
}

.wf-logo {
  font-weight: 600;
}

.wf-header {
  padding: 20px 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.wf-nav {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e8e8e8;
  flex-wrap: wrap;
}

.wf-nav-item {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 11px;
  color: #444;
}

.wf-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 16px;
}

.wf-button {
  padding: 12px;
  background: #f4f6f9;
  border: 1px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  color: #555;
}

.wf-tabs-container {
  margin: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.wf-tabs {
  display: flex;
  background: #f4f6f9;
  border-bottom: 1px solid #e8e8e8;
}

.wf-tab {
  padding: 8px 14px;
  font-size: 11px;
  color: #666;
  border-right: 1px solid #e8e8e8;
  cursor: default;
}

.wf-tab:first-child {
  background: #fff;
  color: #2563eb;
  font-weight: 500;
}

.wf-list-block {
  margin: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.wf-list-header {
  background: #f4f6f9;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

.wf-list {
  padding: 4px 0;
}

.wf-list-row {
  padding: 6px 12px;
  font-size: 11px;
  color: #888;
  border-bottom: 1px solid #f5f5f5;
}

.wf-list-row:last-child {
  border-bottom: none;
}

.wf-banner {
  margin: 12px 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px dashed #7dd3fc;
  border-radius: 8px;
  text-align: center;
  color: #0369a1;
  font-size: 12px;
}

.wf-cta {
  margin: 12px 16px;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.wf-empty {
  padding: 40px 16px;
  text-align: center;
  color: #aaa;
  font-style: italic;
}

/* Navigation Buttons */
.cfg-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.cfg-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.cfg-btn-primary {
  background: #2563eb;
  color: #fff;
}

.cfg-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cfg-btn-secondary {
  background: #f0f0f0;
  color: #444;
}

.cfg-btn-secondary:hover {
  background: #e0e0e0;
}

.cfg-btn-success {
  background: #16a34a;
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
}

.cfg-btn-success:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* Summary */
.cfg-summary-lead {
  background: #f8fafc;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.cfg-summary-lead h3 {
  font-size: 14px;
  margin: 0 0 12px;
}

.cfg-summary-lead-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}

.cfg-summary-lead-grid span {
  color: #888;
}

.cfg-summary-module {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.cfg-summary-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.cfg-badge {
  font-size: 11px;
  background: #2563eb;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.cfg-summary-section {
  margin-bottom: 10px;
}

.cfg-summary-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.cfg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cfg-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 6px;
  color: #444;
}

.cfg-tag.tag-overzicht {
  background: #eff6ff;
  color: #1e40af;
}

.cfg-tag.tag-overig {
  background: #fef3c7;
  color: #92400e;
}

.cfg-summary-wireframe {
  margin-top: 12px;
}

.cfg-summary-wireframe summary {
  font-size: 13px;
  color: #2563eb;
  cursor: pointer;
  font-weight: 500;
}

.cfg-summary-wireframe details[open] summary {
  margin-bottom: 12px;
}

/* Actions */
.cfg-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
  #insite-configurator {
    padding: 16px;
  }

  .cfg-step {
    padding: 20px;
  }

  .cfg-checkbox-list {
    grid-template-columns: 1fr;
  }

  .wf-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .cfg-actions {
    flex-direction: column;
  }
}

