/* App-specific styles */
:root {
  --connection-color: #3b82f6;
  --active-connection: #ef4444;
  --grid-color: #e2e8f0;
  --component-hover: #f1f5f9;
  --tooltip-bg: rgba(0, 0, 0, 0.8);
  --tooltip-color: white;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--component-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  z-index: 50;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Component Palette */
.component-palette {
  width: 250px;
  background-color: var(--component-bg);
  border-right: 1px solid var(--border-color);
  padding: 1rem;
  overflow-y: auto;
  z-index: 20;
  transition: transform 0.3s ease;
}

.component-palette h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.component-section {
  margin-bottom: 1.5rem;
}

.component-section h3 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.component-section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  margin-right: 0.5rem;
  border-radius: 2px;
}

.component-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  cursor: grab;
  background-color: var(--component-bg);
  transition: all 0.2s;
  user-select: none;
}

.component-item:hover {
  background-color: var(--component-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.component-item:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.component-preview {
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Drawing Area */
.drawing-area-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.drawing-controls {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: var(--component-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.zoom-controls,
.drawing-mode {
  display: flex;
  gap: 0.375rem;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.mode-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.mode-btn i {
  margin-right: 0.375rem;
}

.drawing-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--background-color);
  cursor: default;
}

#wiring-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#components-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transform-origin: 0 0;
}

/* Properties Panel */
.properties-panel {
  width: 300px;
  background-color: var(--component-bg);
  border-left: 1px solid var(--border-color);
  padding: 1rem;
  overflow-y: auto;
  z-index: 20;
  transition: transform 0.3s ease;
}

.properties-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.property-group {
  margin-bottom: 1.25rem;
}

.property-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.property-group input,
.property-group select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--background-color);
  font-size: 0.875rem;
}

.property-group input:focus,
.property-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Electrical Components */
.electrical-component {
  position: absolute;
  background-color: var(--component-bg);
  border: 2px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.75rem;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: move;
  user-select: none;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.1s;
}

.electrical-component:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.electrical-component:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.electrical-component.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.component-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.component-label {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Connection Points */
.connection-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--component-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}

.connection-point:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.2);
}

.connection-point.connected {
  background-color: var(--connection-color);
  border-color: var(--connection-color);
}

.connection-point.active {
  background-color: var(--active-connection);
  border-color: var(--active-connection);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Tooltip for connection points */
.connection-point .tooltip {
  position: absolute;
  background-color: var(--tooltip-bg);
  color: var(--tooltip-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 30;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.connection-point:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Component specific styles */
.verdeelkast-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="20" rx="2" /><line x1="6" y1="6" x2="6" y2="18" /><line x1="10" y1="6" x2="10" y2="18" /><line x1="14" y1="6" x2="14" y2="18" /><line x1="18" y1="6" x2="18" y2="18" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.enkelpolig-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="12" x2="16" y2="12" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.wissel-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="8" x2="16" y2="16" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.kruis-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="8" x2="16" y2="16" /><line x1="8" y1="16" x2="16" y2="8" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.stopcontact-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><circle cx="8" cy="12" r="2" /><circle cx="16" cy="12" r="2" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.stopcontact-dubbel-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="6" width="20" height="12" rx="2" /><circle cx="8" cy="12" r="2" /><circle cx="16" cy="12" r="2" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.lamp-content {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="12" y1="6" x2="12" y2="18" /><line x1="6" y1="12" x2="18" y2="12" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

/* Component preview styles */
.verdeelkast-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="20" rx="2" /><line x1="6" y1="6" x2="6" y2="18" /><line x1="10" y1="6" x2="10" y2="18" /><line x1="14" y1="6" x2="14" y2="18" /><line x1="18" y1="6" x2="18" y2="18" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="12" x2="16" y2="12" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-wissel-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="8" x2="16" y2="16" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-kruis-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="8" y1="8" x2="16" y2="16" /><line x1="8" y1="16" x2="16" y2="8" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.stopcontact-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><circle cx="8" cy="12" r="2" /><circle cx="16" cy="12" r="2" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.stopcontact-dubbel-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="6" width="20" height="12" rx="2" /><circle cx="8" cy="12" r="2" /><circle cx="16" cy="12" r="2" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.lamp-preview {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" /><line x1="12" y1="6" x2="12" y2="18" /><line x1="6" y1="12" x2="18" y2="12" /></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* Dialog styles */
.dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.dialog.active {
  display: flex;
  opacity: 1;
}

.dialog-content {
  background-color: var(--component-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.dialog.active .dialog-content {
  transform: scale(1);
}

.dialog h2 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--background-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }

  .component-palette {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .component-section {
    min-width: 200px;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }

  .properties-panel {
    width: 100%;
    height: 200px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .drawing-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  .zoom-controls,
  .drawing-mode {
    justify-content: center;
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .component-palette {
    height: 160px;
  }

  .properties-panel {
    height: 180px;
  }

  .component-item {
    padding: 0.5rem;
  }

  .component-preview {
    width: 32px;
    height: 32px;
  }

  .app-header {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .toolbar {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.connection-point.active {
  animation: pulse 1s infinite;
}

/* Wire legend */
.wire-legend {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.wire-legend h3 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* Settings */
.settings-item {
  padding: 0.75rem;
  background-color: var(--background-color);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.toggle-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.875rem;
}

.toggle-container {
  position: relative;
  width: 40px;
  height: 20px;
}

.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Keyboard shortcuts */
.keyboard-shortcuts-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.keyboard-shortcuts-info h3 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.shortcut-item span:first-child {
  font-family: monospace;
  background-color: var(--background-color);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
}

/* AREI Results Dialog */
.arei-results {
  margin-bottom: 1.5rem;
}

.arei-status {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.375rem;
}

.arei-results.passed .arei-status {
  background-color: rgba(56, 161, 105, 0.1);
  color: #38a169;
}

.arei-results.failed .arei-status {
  background-color: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
}

.arei-status i {
  font-size: 2rem;
  margin-right: 1rem;
}

.arei-status h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.arei-issues,
.arei-warnings {
  margin-bottom: 1.5rem;
}

.arei-issues h4,
.arei-warnings h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.arei-issue,
.arei-warning {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
}

.arei-issue {
  background-color: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
}

.arei-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.arei-issue i,
.arei-warning i {
  margin-right: 0.75rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-left: auto;
}

.electrical-component.highlight {
  animation: highlight-pulse 1s infinite alternate;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.5);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(229, 62, 62, 0.2);
  }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem;
  border-radius: 0.375rem;
  background-color: var(--component-bg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.active {
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-success .toast-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.toast-error .toast-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.toast-info .toast-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-color);
}
/* Add these styles to the existing app-styles.css file */

/* Component specific styles for Niko switches */
.enkelpolig-content {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/b/6/4/b64ebffe5ab04920a11da5670119d162.ashx?h=400&w=400&la=nl-BE&bc=white&hash=C1807C3F031F7FBEFFD53978ACB798C4");
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.dubbelpolig-content {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/4/d/3/4d34c5f48c8642abb1a5a5670119d175.ashx?h=400&w=400&la=nl-BE&bc=white&hash=669F4E59241A991997990E7B3732141C");
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.wissel-content {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/7/5/3/753179a2f838415c9789a5670119e91d.ashx?h=400&w=400&la=nl-BE&bc=white&hash=FEC464BF16826CEBA3918590014C5DBF");
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.kruis-content {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/9/a/8/9a8db1fa3d7c4de88839a5670119f8d9.ashx?h=400&w=400&la=nl-BE&bc=white&hash=EF2AB5E9E6BB9041FD226169D60F7327");
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.impuls-content {
  background-image: url("https://cdn.webshopapp.com/shops/289648/files/436052625/400x400x2/pulsdrukker-no-1x-maak-contact-10a-insteekklemmen.jpg");
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

/* Component preview styles for Niko switches */
.schakelaar-enkelpolig-preview {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/b/6/4/b64ebffe5ab04920a11da5670119d162.ashx?h=400&w=400&la=nl-BE&bc=white&hash=C1807C3F031F7FBEFFD53978ACB798C4");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-dubbelpolig-preview {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/4/d/3/4d34c5f48c8642abb1a5a5670119d175.ashx?h=400&w=400&la=nl-BE&bc=white&hash=669F4E59241A991997990E7B3732141C");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-wissel-preview {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/7/5/3/753179a2f838415c9789a5670119e91d.ashx?h=400&w=400&la=nl-BE&bc=white&hash=FEC464BF16826CEBA3918590014C5DBF");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-kruis-preview {
  background-image: url("https://www.niko.eu/-/media/sites/nikoeu/import/digital-assets/9/a/8/9a8db1fa3d7c4de88839a5670119f8d9.ashx?h=400&w=400&la=nl-BE&bc=white&hash=EF2AB5E9E6BB9041FD226169D60F7327");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.schakelaar-impuls-preview {
  background-image: url("https://cdn.webshopapp.com/shops/289648/files/436052625/400x400x2/pulsdrukker-no-1x-maak-contact-10a-insteekklemmen.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* File import/export styles */
.file-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Custom file format icon */
.elektro-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  font-weight: bold;
  font-size: 0.75rem;
}

/* File drop zone */
.file-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  background-color: var(--background-color);
  transition: all 0.2s;
}

.file-drop-zone.active {
  border-color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.1);
}

.file-drop-zone i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.file-drop-zone p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
