.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(26, 29, 30, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font: 600 18px var(--font-display);
  color: var(--color-dark);
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 20px;
  color: var(--color-muted);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-border);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}

.modal-input {
  padding: 14px 16px;
}

/* Modal buttons extend base button styles with wider padding */
.modal-btn {
  padding: 12px 24px;
}

.modal-error {
  padding: 12px 14px;
  margin-bottom: 12px;
}

/* Wheel list styles */
.wheel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wheel-list-empty {
  padding: 40px 20px;
  font: 14px var(--font-display);
  color: var(--color-muted);
  text-align: center;
}

.wheel-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f6f8fa;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.wheel-list-item:hover {
  background: #eef2f6;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.wheel-list-item-info {
  flex: 1;
  min-width: 0;
}

.wheel-list-item-name {
  font: 600 14px var(--font-display);
  color: var(--color-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-list-item-meta {
  font: 12px var(--font-display);
  color: var(--color-muted);
}

.wheel-list-item-actions {
  display: flex;
  gap: 8px;
}

.wheel-list-item-btn {
  padding: 8px 14px;
  font: 600 12px var(--font-display);
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wheel-list-item-btn:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.wheel-list-item-btn-load {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 2px 8px var(--color-accent-glow);
}

.wheel-list-item-btn-load:hover {
  background: var(--gradient-accent-hover);
  box-shadow: 0 4px 12px var(--color-accent-glow);
  transform: translateY(-1px);
}

.wheel-list-item-btn-delete {
  color: var(--color-danger);
  border-color: var(--color-error-border);
}

.wheel-list-item-btn-delete:hover {
  color: #fff;
  background: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.modal-loading {
  padding: 40px 20px;
  font: 14px var(--font-display);
  color: var(--color-muted);
  text-align: center;
}
